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

Express server help #69

Open
jwilson114 opened this issue Mar 9, 2022 · 1 comment
Open

Express server help #69

jwilson114 opened this issue Mar 9, 2022 · 1 comment

Comments

@jwilson114
Copy link

jwilson114 commented Mar 9, 2022

I am trying to add next boost to my existing next app with a custom express server. From the express example I am struggling to understand how to implement the render method. I have a couple of urls that are nested categories and route to the same next.js page so I use the app.render method. How can this be done using the CachedHandler... from the example I can only see that the CachedHandler().handler is available.

await app.render(req, res, '/b', query)

The above is taken from https://nextjs.org/docs/advanced-features/custom-server

Thanks

@jwilson114
Copy link
Author

anyone able to help on this one? Very much appreciated if guidance could be offered.

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