Update vite.config.js

This commit is contained in:
sosokker 2023-11-22 22:47:16 +07:00
parent 6ac8c65de7
commit 84bd04126e

View File

@ -1,7 +1,6 @@
import { defineConfig } from "vite"; import { defineConfig } from "vite";
import react from "@vitejs/plugin-react"; import react from "@vitejs/plugin-react";
// https://vitejs.dev/config/
export default defineConfig({ export default defineConfig({
plugins: [react()], plugins: [react()],
resolve: { resolve: {
@ -9,4 +8,7 @@ export default defineConfig({
src: "/src", src: "/src",
}, },
}, },
define: {
__APP_ENV__: import.meta.env.VITE_VERCEL_ENV,
},
}); });