Enable remote functions
1 minute read
Enable SvelteKit remote functions to allow .remote.ts files with query, prerender,command, and form functions.
Changes to svelte.config.js
export default {
kit: {
experimental: {
remoteFunctions: true
}
},
compilerOptions: {
experimental: {
async: true
}
}
} Docs
Notes
- Feature is experimental, APIs may change
async: truecompiler option enablesawaitin component templates- Prerequisite for the pages metadata remote function and ReadNext remote function tasks
Read next