Initial commit
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
import { mdsvex } from 'mdsvex';
|
||||
import adapter from '@sveltejs/adapter-node';
|
||||
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
|
||||
import dotenv from 'dotenv';
|
||||
dotenv.config();
|
||||
|
||||
const domains = (
|
||||
process.env.CSRF_TRUSTED_DOMAINS || 'http://localhost:5173,http://localhost:3000'
|
||||
).split(',');
|
||||
|
||||
/** @type {import('@sveltejs/kit').Config} */
|
||||
const config = {
|
||||
// Consult https://svelte.dev/docs/kit/integrations
|
||||
// for more information about preprocessors
|
||||
preprocess: [vitePreprocess(), mdsvex()],
|
||||
kit: {
|
||||
adapter: adapter(),
|
||||
alias: {
|
||||
'@/*': './path/to/lib/*',
|
||||
$schemas: './src/schemas',
|
||||
'$generated/*': './src/generated/*',
|
||||
'$paraglide/*': './src/paraglide/*'
|
||||
},
|
||||
experimental: {
|
||||
remoteFunctions: true
|
||||
},
|
||||
csrf: {
|
||||
trustedOrigins: domains
|
||||
}
|
||||
},
|
||||
compilerOptions: {
|
||||
experimental: {
|
||||
async: true
|
||||
}
|
||||
},
|
||||
extensions: ['.svelte', '.svx']
|
||||
};
|
||||
|
||||
export default config;
|
||||
Reference in New Issue
Block a user