svelte.config.js 538 B

123456789101112131415161718
  1. import adapter from '@sveltejs/adapter-static';
  2. import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
  3. /** @type {import('@sveltejs/kit').Config} */
  4. const config = {
  5. // Consult https://svelte.dev/docs/kit/integrations
  6. // for more information about preprocessors
  7. preprocess: vitePreprocess(),
  8. kit: {
  9. adapter: adapter({ pages: 'build', assets: 'build', fallback: '404.html', precompress: false, strict: true }),
  10. paths: {
  11. base: process.argv.includes('dev') ? '' : process.env.BASE_PATH
  12. }
  13. }
  14. };
  15. export default config;