Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

svelte.config.js 781 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
  1. import adapter from "@sveltejs/adapter-static";
  2. import { vitePreprocess } from "@sveltejs/vite-plugin-svelte";
  3. import dotenv from "dotenv";
  4. dotenv.config({ path: "./.env.local" });
  5. dotenv.config({ path: "./.env" });
  6. process.env.PUBLIC_VERSION ??= process.env.npm_package_version;
  7. /** @type {import('@sveltejs/kit').Config} */
  8. const config = {
  9. // Consult https://kit.svelte.dev/docs/integrations#preprocessors
  10. // for more information about preprocessors
  11. preprocess: vitePreprocess(),
  12. kit: {
  13. adapter: adapter({
  14. fallback: "200.html", // may differ from host to host
  15. }),
  16. paths: {
  17. base: process.env.APP_BASE || "",
  18. },
  19. csrf: {
  20. // handled in hooks.server.ts, because we can have multiple valid origins
  21. checkOrigin: false,
  22. },
  23. },
  24. };
  25. export default config;
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...