Skip to content

Commit 6981d58

Browse files
author
FalkWolsky
committed
fixing nodeServiceApiProxyTarget in vite config
1 parent d56e6d1 commit 6981d58

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

client/packages/lowcoder/vite.config.mts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ import dynamicImport from 'vite-plugin-dynamic-import';
1212
import { ensureLastSlash } from "./src/dev-utils/util";
1313
import { buildVars } from "./src/dev-utils/buildVars";
1414
import { globalDepPlugin } from "./src/dev-utils/globalDepPlguin";
15-
import { nodePolyfills } from 'vite-plugin-node-polyfills'
15+
// import { nodePolyfills } from 'vite-plugin-node-polyfills'
1616

1717
dotenv.config();
1818

1919
const apiProxyTarget = process.env.LOWCODER_API_SERVICE_URL;
20-
const nodeServiceApiProxyTarget = process.env.NODE_SERVICE_API_PROXY_TARGET;
20+
const nodeServiceApiProxyTarget = process.env.LOWCODER_NODE_SERVICE_URL;
2121
const nodeEnv = process.env.NODE_ENV ?? "development";
2222
const isDev = nodeEnv === "development";
2323
const isVisualizerEnabled = !!process.env.ENABLE_VISUALIZER;
@@ -110,6 +110,10 @@ export const viteConfig: UserConfig = {
110110
javascriptEnabled: true,
111111
},
112112
},
113+
modules: {
114+
// Configuration for CSS modules
115+
scopeBehaviour: 'local' // Ensures CSS modules are scoped locally by default
116+
}
113117
},
114118
server: {
115119
open: true,
@@ -158,7 +162,7 @@ export const viteConfig: UserConfig = {
158162
}),
159163
isVisualizerEnabled && visualizer(),
160164
dynamicImport(),
161-
nodePolyfills({ include: ['process'] }),
165+
({ include: ['process'] }),
162166
].filter(Boolean),
163167
};
164168

0 commit comments

Comments
 (0)