1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-08 07:00:04 +00:00

chore: windows env variables needs to be trimmed

This commit is contained in:
Saad Jutt
2021-11-12 21:27:29 +05:00
parent 2eb42408d1
commit 46f2648a95
5 changed files with 5 additions and 5 deletions

View File

@@ -26,7 +26,7 @@ export const populateClients = async () => {
export const connectDB = () => {
const { MODE } = process.env
if (MODE === 'desktop') {
if (MODE?.trim() === 'desktop') {
console.log('Running in Destop Mode, no DB to connect.')
return
}

View File

@@ -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 = `