Priority/frontend/svelte.config.js

23 lines
742 B
JavaScript
Raw Normal View History

2023-12-05 13:48:13 +01:00
import { vitePreprocess } from '@sveltejs/kit/vite';
// import adapter from '@sveltejs/adapter-auto';
import adapter from '@sveltejs/adapter-static';
2023-12-05 10:16:42 +01:00
/** @type {import('@sveltejs/kit').Config} */
const config = {
kit: {
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
// If your environment is not supported or you settled on a specific environment, switch out the adapter.
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
2023-12-05 13:48:13 +01:00
adapter: adapter({
pages: '../backend/static',
assets: '../backend/static',
fallback: 'index.html',
precompress: true,
strict: true
})
},
preprocess: [vitePreprocess({})]
2023-12-05 10:16:42 +01:00
};
export default config;