You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempt to start the server at port 8000, using env PORT=8000 yarn start
The server will start at port 3000 and not 8000
Expected behavior
I expected that the server should start in the port on the $PORT environment variable specified
Actual behavior
The server will start on 3000 if I don't use --port option.
This is different from other frameworks (like Next.js), which they respect the $PORT environment variable.
Josh-Cena
added
feature
This is not a bug or issue with Docusausus, per se. It is a feature request for the future.
and removed
bug
An error in the Docusaurus core causing instability or issues with its execution
status: needs triage
This issue has not been triaged by maintainers
labels
Feb 18, 2023
**NOTE: If you believe this is a question please convert it to a discussion (rather than closing it), cf https://bit.ly/3YWp3GJ
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
Docusaurus is not respecting the $PORT environment variable.
For example if I specify
env PORT=8000 yarn start
it will start on port 3000 and not on 8000.Reproducible demo
https://github.com/seyoon20087/docusaurus-reproduction-port-env-not-respecting
Steps to reproduce
yarn
)env PORT=8000 yarn start
Expected behavior
I expected that the server should start in the port on the $PORT environment variable specified
Actual behavior
The server will start on 3000 if I don't use
--port
option.This is different from other frameworks (like Next.js), which they respect the $PORT environment variable.
For your reference here is the screenshot:
Your environment
Self-service
The text was updated successfully, but these errors were encountered: