Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix default host #4413

Merged
merged 3 commits into from
Oct 16, 2024
Merged

fix default host #4413

merged 3 commits into from
Oct 16, 2024

Conversation

rbren
Copy link
Collaborator

@rbren rbren commented Oct 15, 2024

End-user friendly description of the problem this fixes or functionality that this introduces

  • Include this change in the Release Notes. If checked, you must provide an end-user friendly description for your change below
    none needed

Give a summary of what the PR does, explaining any non-trivial design decisions

Currently the app is broken if you docker run on a port other than 3000


Link of any specific issues this addresses

@rbren rbren marked this pull request as ready for review October 15, 2024 20:24
@rbren rbren requested a review from amanape October 15, 2024 20:24
svgr(),
],
server: {
port: FE_PORT,
Copy link
Member

@amanape amanape Oct 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it is the default port that you want to fix (from 5173 to 3000), all you need to set is server.port. I don't think we are utilizing anything proxy-related here (it is a dev-only setting)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right exactly--in dev mode, the FE now makes requests to localhost:3001/api/... and the proxy passes them to localhost:3000/api/...

That's a bit more like prod, where both FE and BE are at the same address

@rbren rbren merged commit be79ccd into main Oct 16, 2024
15 checks passed
@rbren rbren deleted the rbren-patch-1 branch October 16, 2024 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants