Skip to content

Commit 6df07f5

Browse files
committed
fix: fixes build fail issue of windows
1 parent 3edcf13 commit 6df07f5

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

frontend/build.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import esbuild from "esbuild";
22
import "dotenv/config";
33

4-
const define = {};
5-
for (const k in process.env) {
6-
define[`process.env.${k}`] = JSON.stringify(process.env[k]);
7-
}
4+
const define = {
5+
"process.env.BACKEND_URL": JSON.stringify(process.env.BACKEND_URL || ""),
6+
};
87

98
esbuild
109
.build({

frontend/scripts/ui.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export function injectOrUpdateTranslations(
110110
codeWrapper.className = "code-wrapper";
111111
const copyButton = document.createElement("div");
112112
copyButton.className = "copy-button";
113-
copyButton.innerText = "copy";
113+
copyButton.innerText = "Copy";
114114
copyButton.addEventListener("click", () => {
115115
navigator.clipboard.writeText(translations[lang]).then(() => {
116116
copyButton.innerText = "Copied!";

0 commit comments

Comments
 (0)