feat: switch SvelteKit from Cloudflare to node adapter

Deploying to Railway instead of Cloudflare, so swap
@sveltejs/adapter-cloudflare for @sveltejs/adapter-node.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Sanju Sivalingam
2026-02-17 14:29:47 +05:30
parent 4c8241c964
commit c0cf5039cd
2 changed files with 83 additions and 0 deletions

25
web/svelte.config.js Normal file
View File

@@ -0,0 +1,25 @@
import adapter from '@sveltejs/adapter-node';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://svelte.dev/docs/kit/integrations
// for more information about preprocessors
preprocess: vitePreprocess(),
kit: {
experimental: {
remoteFunctions: true
},
adapter: adapter(),
alias: {
'@/*': './src/lib/*'
}
},
compilerOptions: {
experimental: {
async: true
}
}
};
export default config;