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

GML-1823: use proxy in vite dev server #245

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

billshitg
Copy link
Contributor

Add reverse proxy to the vite dev server so that the frontend can communicate to the backend service at a different port during development. It is only effective for development, i.e., when you run pnpm run dev to serve the UI.

@@ -10,4 +10,13 @@ export default defineConfig({
"@": path.resolve(__dirname, "./src"),
},
},
server: {
proxy: {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hey @RobRossmiller-TG what was your question about the login endpoint? Somehow I couldn't remember it.

Copy link
Contributor

Choose a reason for hiding this comment

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

Hey yes. This answers it. Thanks!

@@ -10,4 +10,13 @@ export default defineConfig({
"@": path.resolve(__dirname, "./src"),
},
},
server: {
proxy: {
Copy link
Contributor

Choose a reason for hiding this comment

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

Hey yes. This answers it. Thanks!

@RobRossmiller-TG RobRossmiller-TG merged commit 08612ab into dev Jul 16, 2024
1 check passed
@RobRossmiller-TG RobRossmiller-TG deleted the GML-1823-react-dev-proxy branch July 16, 2024 13:46
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.

3 participants