Files
oki-atlas-fediverse/atlas-fediverse/svelte.config.js
T

22 lines
594 B
JavaScript
Raw Normal View History

import adapter from '@sveltejs/adapter-static';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
/** @type {import('@sveltejs/kit').Config} */
const config = {
preprocess: vitePreprocess(),
kit: {
adapter: adapter({
pages: 'build',
assets: 'build',
fallback: undefined,
precompress: false,
strict: true
})
// Déployé à la racine de https://syel.o-k-i.net (YunoHost / nginx) —
// pas de paths.base. La CSP est gérée par build/nginx-csp.conf (snippet
// généré au build, à inclure dans la config nginx de l'app).
}
};
export default config;