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>
26 lines
510 B
JavaScript
26 lines
510 B
JavaScript
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;
|