mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-08-31 15:43:25 +00:00
26 lines
630 B
JavaScript
26 lines
630 B
JavaScript
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: 'index.html',
|
|
precompress: false,
|
|
strict: true
|
|
}),
|
|
paths: {
|
|
base: process.argv.includes('dev') ? '' : process.env.BASE_PATH
|
|
},
|
|
prerender: {
|
|
entries: ['/'],
|
|
crawl: true,
|
|
}
|
|
}
|
|
};
|
|
|
|
export default config;
|