Use port 11006 in examples#9
Merged
Merged
Conversation
Update example backend port from 8085 to 11006 across the project and adjust frontend accordingly. Changes include backend Dockerfile and application.yml, docker-compose port mapping, frontend API base URL and request preview display, and update the frontend index title to "Spring Web Captor" to reflect the application name.
Expose and map the frontend on port 11007 and allow the backend URL to be injected via VITE_BACKEND_URL. Updated docker-compose to pass a build arg and map 11007, updated the frontend Dockerfile to accept ARG/ENV and change the static server port, and updated the frontend code (client.ts and RequestPreview.tsx) to read import.meta.env.VITE_BACKEND_URL with a fallback to http://localhost:11006. This makes the backend endpoint configurable at build/runtime and keeps the container port mapping consistent.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Update example backend port from 8085 to 11006 across the project and adjust frontend accordingly. Changes include backend Dockerfile and application.yml, docker-compose port mapping, frontend API base URL and request preview display, and update the frontend index title to "Spring Web Captor" to reflect the application name.