Skip to content

Commit

Permalink
fix(cli): load server config asynchronously (#1145)
Browse files Browse the repository at this point in the history
fixes #1144
  • Loading branch information
simonas-notcat authored Mar 15, 2023
1 parent a9b9982 commit 2a0aef1
Show file tree
Hide file tree
Showing 3 changed files with 437 additions and 734 deletions.
2 changes: 1 addition & 1 deletion packages/cli/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const server = new Command('server')
let server: any

try {
const config = await createObjects(getConfig(cmd.optsWithGlobals().config), { server: '/server' })
const config = await createObjects(await getConfig(cmd.optsWithGlobals().config), { server: '/server' })
server = config.server
} catch (e: any) {
console.error(e.message)
Expand Down
2 changes: 2 additions & 0 deletions packages/test-react-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@
"@types/node": "18.11.18",
"@types/react": "18.0.27",
"@types/react-dom": "18.0.10",
"babel-jest": "^29.5.0",
"babel-preset-react-app": "^10.0.1",
"cross-env": "7.0.3",
"jest": "29.3.1",
"jest-config": "29.3.1",
Expand Down
Loading

0 comments on commit 2a0aef1

Please sign in to comment.