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

Add Vite proxy configuration to forward requests to backend #3179

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kittors
Copy link

@kittors kittors commented Feb 12, 2025

Pull Request Type

  • ✨ feat
  • πŸ› fix
  • ♻️ refactor
  • πŸ’„ style
  • πŸ”¨ chore
  • πŸ“ docs

What is in this change?

  • Added Vite proxy configuration to forward requests to the backend at http://localhost:3001.
  • Configured Vite server to listen on port 3000 and forward requests matching the VITE_API_BASE environment variable to the back-end API.

Additional Information

  • This change is mainly for local development, enabling the Vite development server to act as a proxy to an existing backend server.
  • I think you can update the VITE_API_BASE in .env to "/api".

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.

1 participant