mirror of
https://github.com/sasjs/server.git
synced 2025-12-11 03:34:35 +00:00
chore: windows env variables needs to be trimmed
This commit is contained in:
@@ -9,7 +9,7 @@ webRouter.get('/', async (_, res) => {
|
||||
const indexHtmlPath = path.join(getWebBuildFolderPath(), 'index.html')
|
||||
|
||||
const { MODE } = process.env
|
||||
if (MODE === 'desktop') {
|
||||
if (MODE?.trim() === 'desktop') {
|
||||
const content = await readFile(indexHtmlPath)
|
||||
|
||||
const codeToInject = `
|
||||
|
||||
Reference in New Issue
Block a user