Skip to content

Handling dynamic routes with page.js #211

@JGSolutions

Description

@JGSolutions

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions