yaerguossite/svelte.config.js

22 lines
541 B
JavaScript
Raw Normal View History

2025-01-05 13:23:33 +01:00
import adapter from '@sveltejs/adapter-static';
2025-01-05 13:03:47 +01:00
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
2025-01-05 13:23:33 +01:00
export default {
2025-01-05 13:03:47 +01:00
kit: {
2025-01-05 13:23:33 +01:00
adapter: adapter({
pages: 'build',
assets: 'build',
fallback: 'index.html',
precompress: false,
strict: true
}),
paths: {
base: process.env.NODE_ENV === 'production' ? '/yaerguos-website' : '',
assets: process.env.NODE_ENV === 'production' ? 'https://spitkov.github.io/yaerguos-website' : ''
},
appDir: 'app',
trailingSlash: 'always'
},
preprocess: vitePreprocess()
2025-01-05 13:03:47 +01:00
};