Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

is-next-request.js 207 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
  1. const { FEATURE_NEXTJS } = process.env;
  2. module.exports = function isNextRequest(req, res, next) {
  3. req.renderWithNextjs = false;
  4. if (FEATURE_NEXTJS) {
  5. req.renderWithNextjs = true;
  6. }
  7. next();
  8. };
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...