svelte.config.js 552 B

1234567891011121314151617181920212223
  1. import autoAdapter from '@sveltejs/adapter-auto'
  2. import staticAdapter from '@sveltejs/adapter-static'
  3. import preprocess from 'svelte-preprocess'
  4. const TARGET = process.env.TARGET
  5. /** @type {import('@sveltejs/kit').Config} */
  6. const config = {
  7. // Consult https://github.com/sveltejs/svelte-preprocess
  8. // for more information about preprocessors
  9. preprocess: preprocess(),
  10. kit: {
  11. adapter:
  12. TARGET === 'tauri'
  13. ? staticAdapter({
  14. fallback: 'index.html'
  15. })
  16. : autoAdapter()
  17. }
  18. }
  19. export default config