Fix NODE_ENV in kibana.bat (#139326)

In https://github.com/elastic/kibana/pull/138503 we removed
*.development files from builds.  On Windows we're hitting a code path
where these end up imported, because NODE_ENV is incorrectly wrapped in
quotes.

cmd interpets NODE_ENV="production" as '"production"'.  We can remove
the quotes or set "NODE_ENV=production".
This commit is contained in:
Jonathan Budzenski 2022-08-24 12:24:55 -04:00 committed by GitHub
parent 2f7437e4da
commit fc43274fc6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,7 +7,7 @@ for %%I in ("%SCRIPT_DIR%..") do set DIR=%%~dpfI
set NODE=%DIR%\node\node.exe
set NODE_ENV="production"
set NODE_ENV=production
If Not Exist "%NODE%" (
Echo unable to find usable node.js executable.