fix: use inbuilt frontend dev server to proxy API instead of Nginx #199
+11
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Vue's inbuilt dev server can be configured to proxy API for development instead of directing developers to setup Nginx proxy. Additionally, this MR also adds the option to configure the frontend port on which dev server runs. Sample env config file is under
frontend/.env.sample
, it can be copied to eitherfrontend/.env
orfrontend/.env.local
.Available options are
LISTMONK_FRONTEND_PORT
- Configure frontend dev server port (defaults to 8080)LISTMONK_API_URL
- Configure API server URL (defaults to http://127.0.0.1:9000)Since env variables are sourced to the current session we are prefixing it with
LISTMONK_
.