An open API service indexing awesome lists of open source software.

https://github.com/zephraph/next-now-ssr-issue


https://github.com/zephraph/next-now-ssr-issue

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# Next Now SSR Bug reproduction

**Note**: This is fixed when tested on vercel 19.2.0. Everything below is out of date and for historical context.

---

This is a simple static + next.js app that specify's a custom now build and routing.

```
{
"version": 2,
"build": {
"env": {
"BUILDING_FOR_NOW": "true"
}
},
"builds": [
{ "src": "index.html", "use": "@now/static" },
{ "src": "apps/package.json", "use": "@now/next" }
],
"routes": [{ "src": "/next(.*)", "dest": "apps/$1" }]
}
```

**What I expect**

Navigating to `/next/123` should render the `[post]` page and output `Your post id is 123`.

**What's Happening**

`/next/123` produces a 404. `/apps/123` renders the page, but doesn't pass down the SSR response.