Files
appointment-booking-software/svelte.config.js
T

36 lines
1.0 KiB
JavaScript

import adapter from "@sveltejs/adapter-node";
import { vitePreprocess } from "@sveltejs/vite-plugin-svelte";
import path from "path";
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://svelte.dev/docs/kit/integrations
// for more information about preprocessors
preprocess: vitePreprocess(),
checkOrigin: true,
kit: {
// adapter-auto only supports some environments, see https://svelte.dev/docs/kit/adapter-auto for a list.
// If your environment is not supported, or you settled on a specific environment, switch out the adapter.
// See https://svelte.dev/docs/kit/adapters for more information about adapters.
adapter: adapter(),
alias: {
$i18n: path.resolve("./src/i18n"),
},
csp: {
mode: "hash",
directives: {
"script-src": [
"'self'",
"'unsafe-inline'",
"'wasm-unsafe-eval'",
"'unsafe-eval'",
"https://unpkg.com",
],
},
},
},
};
export default config;