-
-
Notifications
You must be signed in to change notification settings - Fork 308
/
vite.config.js.timestamp-1700308014109-77dac3271fa38.mjs
46 lines (46 loc) · 4.55 KB
/
vite.config.js.timestamp-1700308014109-77dac3271fa38.mjs
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// vite.config.js
import { sveltekit } from "file:///D:/lk/lk/sc/node_modules/@sveltejs/kit/src/exports/vite/index.js";
import { defineConfig, loadEnv } from "file:///D:/lk/lk/sc/node_modules/vite/dist/node/index.js";
import { SvelteKitPWA } from "file:///D:/lk/lk/sc/node_modules/@vite-pwa/sveltekit/dist/index.mjs";
var vite_config_default = defineConfig(({ command, mode }) => {
const env = loadEnv(mode, process.cwd(), "");
const HTTP_ENDPOINT = env.PUBLIC_LITEKART_API_URL || "https://api.litekart.in";
return {
plugins: [
sveltekit(),
SvelteKitPWA({
registerType: "autoUpdate",
workbox: {
globPatterns: ["**/*.{ico,png,svg,webp}"]
},
srcDir: "./src",
// mode: 'development',
scope: "/",
base: "/",
devOptions: {
// enabled: true,
type: "module",
navigateFallback: "/"
},
// if you have shared info in svelte config file put in a separate module and use it also here
kit: {}
})
// partytownVite({
// dest: join(process.cwd(), 'static', '~partytown')
// })
],
server: {
https: false,
host: true,
port: 4173,
proxy: {
"/api": HTTP_ENDPOINT,
"/sitemap": "https://s3.ap-south-1.amazonaws.com/litekart.in"
}
}
};
});
export {
vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJEOlxcXFxsa1xcXFxsa1xcXFxzY1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9maWxlbmFtZSA9IFw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