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

Remote functions

Server-side type safety

A static site template built with SvelteKit.

Sveleton, 2025