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 708 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
  1. import adapter from "@sveltejs/adapter-node";
  2. import { vitePreprocess } from "@sveltejs/kit/vite";
  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. paths: {
  15. base: process.env.APP_BASE || "",
  16. },
  17. csrf: {
  18. // handled in hooks.server.ts, because we can have multiple valid origins
  19. checkOrigin: false,
  20. },
  21. },
  22. };
  23. export default config;
Tip!

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

Comments

Loading...