add project
This commit is contained in:
15
svelte.config.js
Normal file
15
svelte.config.js
Normal file
@@ -0,0 +1,15 @@
|
||||
import adapter from '@sveltejs/adapter-node';
|
||||
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
|
||||
|
||||
const config = {
|
||||
preprocess: vitePreprocess(),
|
||||
kit: {
|
||||
adapter: adapter(),
|
||||
// Disable origin check — the app is accessed via many possible URLs
|
||||
// (IP, hostname, localhost) on a local network, so strict origin
|
||||
// matching would break form submissions for most users.
|
||||
csrf: { checkOrigin: false }
|
||||
}
|
||||
};
|
||||
|
||||
export default config;
|
||||
Reference in New Issue
Block a user