Skip to content

Commit 9669903

Browse files
committed
fix: bug when determining dev vs prod
(Because the executable was named "AppContainer-node.exe", it thought it was in dev-mode..)
1 parent 96a48c3 commit 9669903

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/appcontainer-node/packages/generic/src/appContainer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,8 @@ export class AppContainer {
321321
]
322322
}
323323
if (
324-
process.execPath.endsWith('node.exe') || // windows
325-
process.execPath.endsWith('node') // linux
324+
path.basename(process.execPath) === 'node.exe' || // windows
325+
path.basename(process.execPath) === 'node' // linux
326326
) {
327327
// Process runs as a node process, we're probably in development mode.
328328
const appType = protectString<AppType>('worker')

0 commit comments

Comments
 (0)