Problem
Setting a port configuration in the .env file provided with the codebase does not change in the port the development server is accessible from.
Steps to reproduce
- In your local query builder development environment, set the PORT value to 1234
- Run the development server using docker compose: docker compose dev up
Current behavior
The development server is not accessible from localhost:1234
Expected behavior
The development server is accessible from localhost:1234
Notes:
- This seems to have occurred as a result of the migration to vite as a development task runner.
- While adding the workaround below to the "serve" script in package.json might work as a temporary solution, we still want to make sure that test and other scripts also work as expected (especially e2e tests):
package.json
"serve": "eval $(grep '^PORT' .env) && vite --config vite.config.js --port ${PORT:-8080}"