File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 11import esbuild from "esbuild" ;
22import "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
98esbuild
109 . build ( {
Original file line number Diff line number Diff 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!" ;
You can’t perform that action at this time.
0 commit comments