doubtfire-lms / doubtfire-web

Angular web application for the Doubtfire front-end
GNU Affero General Public License v3.0
45 stars 332 forks source link

build: add new build target for reverse proxy in devcontainer #840

Closed ublefo closed 4 months ago

ublefo commented 4 months ago

Introduce a new configuration for serve and build to allow running frontend server on a different port in devcontainer, so this change can be seamless for people with existing devcontainer setups. This should also not affect anyone who aren't using the devcontainer in their development setup.

jakerenzella commented 4 months ago

I want to test this before merging

ublefo commented 4 months ago

Currently NODE_ENV is set to docker so these changes won't affect anything, if you set NODE_ENV to devcontainer the frontend will listen on port 4201, and API_URL will be set to ${window.location.origin}/api so the api requests will go to the reverse proxy too.