We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I don't want to build a router, so I have this:
app.prepare().then(() => { createServer((req, res) => { const parsedUrl = parse(req.url, true), { pathname, query } = parsedUrl, isFile = pathname.match(/(static)/) if (isFile === null) app.render(req, res, '/', query) else handle(req, res, parsedUrl) }).listen(port, err => { if (err) throw err console.log(`> Ready on localhost:${port}`) }) })
It kind of works but client side rendering breaks and I get a 404 with a Node server error like "Client pings, but there's no entry for page"
Thoughts?
The text was updated successfully, but these errors were encountered:
Maybe this helps? #257
Sorry, something went wrong.
@OutThisLife I didn't exactly get the issue.
But you don't need to create a router on your own. Simply use express or something you are familiar with: https://learnnextjs.com/basics/server-side-support-for-clean-urls
Solved my 'problem' by just using https://github.com/fridays/next-routes
Awesome 👍
No branches or pull requests
I don't want to build a router, so I have this:
It kind of works but client side rendering breaks and I get a 404 with a Node server error like "Client pings, but there's no entry for page"
Thoughts?
The text was updated successfully, but these errors were encountered: