mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-31 07:35:24 +00:00
fix: build the SDK host modules in production mode
This commit is contained in:
1 parent
594fc19cbf
commit
76d733143a
1 file changed
+3
@@ -75,6 +75,9 @@ await esbuild.build({
|
|||||||
// so the translated locale files it would list are simply none.
|
// so the translated locale files it would list are simply none.
|
||||||
banner: { js: "const __termixNoGlob = () => ({});" },
|
banner: { js: "const __termixNoGlob = () => ({});" },
|
||||||
define: {
|
define: {
|
||||||
|
// esbuild picks "development" for an unminified build, which sends core's
|
||||||
|
// requests to the Vite dev proxy on any server without a port.
|
||||||
|
"process.env.NODE_ENV": '"production"',
|
||||||
"import.meta.glob": "__termixNoGlob",
|
"import.meta.glob": "__termixNoGlob",
|
||||||
"import.meta.env.DEV": "false",
|
"import.meta.env.DEV": "false",
|
||||||
"import.meta.env.PROD": "true",
|
"import.meta.env.PROD": "true",
|
||||||
|
|||||||
Reference in new issue
Block a user