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

Handling dynamic routes with page.js #211

Open
JGSolutions opened this issue Mar 23, 2016 · 0 comments
Open

Handling dynamic routes with page.js #211

JGSolutions opened this issue Mar 23, 2016 · 0 comments

Comments

@JGSolutions
Copy link

I followed your blog article which is great: https://www.firebase.com/blog/2015-12-16-hosting-improvements.html

So I am using the browser sync with gulp and use it in the middleware.
middleware: [superstatic({stack: 'strict'})]

Now I am using page.js for routing and if i use simple urls for ex: page('/cart') it works but if i add a query param for ex: page('/cart/:id') the gulp fails.

This is my rewrites setup in the firebase.json

"rewrites": [
{
"source": "**",
"destination": "index.html"
}
],

How do we handle the query params

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

1 participant