Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change defaultConfig require path to relative #196

Merged

Conversation

lucassith
Copy link
Contributor

Currently if you build the application with zeit/pkg you will not be able to run it due to a temporary snapshot path. Making it relative will allow pkg to ship the default config with the binary file.

Fixes following error:
(node:24280) UnhandledPromiseRejectionWarning: Error: Cannot find module '/snapshot/api/node_modules/bull-arena/src/server/config/index.json'

This helps with bundling the application, as it's difficult to
statically analyze an expression that invokes path.join.
@skeggse skeggse force-pushed the default-config-require-path-fix branch from 228eeb5 to 7fc577a Compare August 5, 2020 17:17
@skeggse skeggse added this to the 3.1.0 milestone Aug 5, 2020
@skeggse skeggse self-assigned this Aug 5, 2020
@skeggse skeggse merged commit 533f702 into bee-queue:master Aug 5, 2020
@skeggse skeggse modified the milestones: 3.1.0, 3.0, 3.0.2 Aug 5, 2020
beequeueci pushed a commit that referenced this pull request Aug 5, 2020
### [3.0.2](v3.0.1...v3.0.2) (2020-08-05)

### Bug Fixes

* use normal require path for defaultConfig ([#196](#196)) ([533f702](533f702))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants