1
0
mirror of https://github.com/sasjs/server.git synced 2026-04-21 04:41:31 +00:00

chore: additional param for stp/execute + desktop user in req

This commit is contained in:
Saad Jutt
2021-11-13 16:20:51 +05:00
parent cfdb67a049
commit 04a8626570
7 changed files with 106 additions and 229 deletions
+5
View File
@@ -1,3 +1,4 @@
import open from 'open'
import appPromise from './app'
import { configuration } from '../package.json'
@@ -6,5 +7,9 @@ appPromise.then((app) => {
console.log(
`⚡️[server]: Server is running at http://localhost:${configuration.sasJsPort}`
)
const { MODE } = process.env
if (MODE?.trim() !== 'server') {
open(`http://localhost:${configuration.sasJsPort}`)
}
})
})