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

Feature: let proxy module routes be more specific than wildcard #71

Open
shaunc opened this issue Jul 5, 2020 · 2 comments
Open

Feature: let proxy module routes be more specific than wildcard #71

shaunc opened this issue Jul 5, 2020 · 2 comments

Comments

@shaunc
Copy link

shaunc commented Jul 5, 2020

What problem does this feature solve?

I have an app with a single dynamic route at "/". To solve CORS problems in development, I decided to try the proxy module. However, it doesn't work as the request to proxy is intercepted by the dynamic route, leading nuxt to hang and crash.

What does the proposed changes look like?

I would think it would be ok to let '/api' supersede nuxt routes when proxy module is used. If for some reason this isn't acceptable, an option for this would be useful.

This feature request is available on Nuxt community (#c44)
Copy link
Member

atinux commented Jan 29, 2021

Did you find a solution for your issue @shaunc ?

@shaunc
Copy link
Author

shaunc commented Jan 29, 2021

Unfortunately not directly. Instead I put everything on docker for development and used an nginx proxy. Right now I'm fine, but IMO still might be useful for others.

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

No branches or pull requests

2 participants