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
Are there any easy migration step to migrate to inbuilt nextjs routing
The text was updated successfully, but these errors were encountered:
You can use the next js rewrites in your next.config.json for this.
next.config.json
// next.config.json // Existing routes configured with next-routes const routes = require("./your-next-routes") // Map the routes to the below shape // routes = [{ source: '/about', destination: '/' }] module.exports = { async rewrites() { return [...routes] } }
In your server.js file delete routes import and use app.getRequestHandler()
server.js
app.getRequestHandler()
// server.js const handle = app.getRequestHandler(); server.get("*", (req, res) => { return handle(req, res); });
Might have to delete the .next folder before giving it a go.
.next
Sorry, something went wrong.
No branches or pull requests
Are there any easy migration step to migrate to inbuilt nextjs routing
The text was updated successfully, but these errors were encountered: