-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.js
28 lines (28 loc) · 885 Bytes
/
vite.config.js
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
import { defineConfig, loadEnv } from "vite";
import laravel from "laravel-vite-plugin";
import react from "@vitejs/plugin-react";
import fs from "node:fs";
export default defineConfig(function ({ mode }) {
process.env = { ...process.env, ...loadEnv(mode, process.cwd()) };
return {
plugins: [
laravel(["resources/css/app.css", "resources/js/app.js"]),
react(),
],
define: {
"process.env.SHOPIFY_API_KEY": JSON.stringify(
process.env.VITE_SHOPIFY_API_KEY
),
},
resolve: {
preserveSymlinks: true,
},
server: {
host: "localhost",
// https: {
// key: fs.readFileSync("../../etc/ssl/laragon.key"),
// cert: fs.readFileSync("../../etc/ssl/laragon.crt"),
// },
},
};
});