File tree Expand file tree Collapse file tree 1 file changed +2
-16
lines changed Expand file tree Collapse file tree 1 file changed +2
-16
lines changed Original file line number Diff line number Diff line change 1
1
/* eslint-disable */
2
2
import react from "@vitejs/plugin-react" ;
3
- import { defineConfig , loadEnv } from "vite" ;
3
+ import { defineConfig } from "vite" ;
4
4
import checker from "vite-plugin-checker" ;
5
5
import { nodePolyfills } from "vite-plugin-node-polyfills" ;
6
6
import tsconfigPaths from "vite-tsconfig-paths" ;
7
7
8
- export default defineConfig ( ( { mode } ) => {
9
- const env = loadEnv ( mode , process . cwd ( ) , "" ) ;
10
- const filteredEnv = Object . keys ( env ) . reduce ( ( acc , current ) => {
11
- if ( current . startsWith ( "NAMADA_INTERFACE_" ) ) {
12
- return {
13
- ...acc ,
14
- [ current ] : env [ current ] ,
15
- } ;
16
- }
17
- return acc ;
18
- } , { } ) ;
19
-
8
+ export default defineConfig ( ( ) => {
20
9
return {
21
10
plugins : [
22
11
react ( ) ,
@@ -30,9 +19,6 @@ export default defineConfig(({ mode }) => {
30
19
overlay : { initialIsOpen : false } ,
31
20
} ) ,
32
21
] ,
33
- define : {
34
- "process.env" : filteredEnv ,
35
- } ,
36
22
optimizeDeps : {
37
23
esbuildOptions : {
38
24
// Node.js global to browser globalThis
You can’t perform that action at this time.
0 commit comments