forked from Finalgoal231/finalgoal-svelte-ecommerce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.js.timestamp-1702542344810-21c954abd12d1.mjs
45 lines (45 loc) · 4.58 KB
/
vite.config.js.timestamp-1702542344810-21c954abd12d1.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
// vite.config.js
import { sveltekit } from "file:///D:/litekart/svelte-commerce/node_modules/@sveltejs/kit/src/exports/vite/index.js";
import { defineConfig, loadEnv } from "file:///D:/litekart/svelte-commerce/node_modules/vite/dist/node/index.js";
import { SvelteKitPWA } from "file:///D:/litekart/svelte-commerce/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: {
host: true,
port: 3e3,
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,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJEOlxcXFxsaXRla2FydFxcXFxzdmVsdGUtY29tbWVyY2VcIjtjb25zdCBfX3Zp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