Add environment variable injection to esbuild config (#6225)
* Add environment variable injection to esbuild config Inject TELEMETRY_SERVICE_API_KEY, ERROR_SERVICE_API_KEY, and CLINE_ENVIRONMENT at build time for production builds. * add changeset * update
This commit is contained in:
2 files changed
+12
-1
No files matched your search
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"claude-dev": patch
|
||||
---
|
||||
|
||||
Add environment variable injection to esbuild config
|
||||
+7
-1
@@ -130,8 +130,14 @@ const baseConfig = {
|
||||
sourcemap: !production,
|
||||
logLevel: "silent",
|
||||
define: production
|
||||
? { "import.meta.url": "_importMetaUrl", "process.env.IS_DEV": JSON.stringify(!production) }
|
||||
? {
|
||||
"import.meta.url": "_importMetaUrl",
|
||||
"process.env.IS_DEV": JSON.stringify(!production),
|
||||
"process.env.TELEMETRY_SERVICE_API_KEY": JSON.stringify(process.env.TELEMETRY_SERVICE_API_KEY || ""),
|
||||
"process.env.ERROR_SERVICE_API_KEY": JSON.stringify(process.env.ERROR_SERVICE_API_KEY || ""),
|
||||
}
|
||||
: { "import.meta.url": "_importMetaUrl" },
|
||||
|
||||
tsconfig: path.resolve(__dirname, "tsconfig.json"),
|
||||
plugins: [
|
||||
copyWasmFiles,
|
||||
|
||||
Reference in new issue
Block a user