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 766 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-node";
  2. import { vitePreprocess } from "@sveltejs/kit/vite";
  3. import dotenv from "dotenv";
  4. import pkg from "./package.json" assert { type: "json" };
  5. dotenv.config({ path: "./.env.local" });
  6. dotenv.config({ path: "./.env" });
  7. process.env.PUBLIC_VERSION = pkg.version.replace(/\.0\b/g, "");
  8. /** @type {import('@sveltejs/kit').Config} */
  9. const config = {
  10. // Consult https://kit.svelte.dev/docs/integrations#preprocessors
  11. // for more information about preprocessors
  12. preprocess: vitePreprocess(),
  13. kit: {
  14. adapter: adapter(),
  15. paths: {
  16. base: process.env.APP_BASE || "",
  17. },
  18. csrf: {
  19. // handled in hooks.server.ts, because we can have multiple valid origins
  20. checkOrigin: false,
  21. },
  22. },
  23. };
  24. export default config;
Tip!

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

Comments

Loading...