A route group can be created by wrapping a folder's name in parenthesis:
1
(folderName)
2
folders in parenthesis will be omitted from the URL
Scenario Questions
0-2 years experience
1Can you walk me through the steps you’d take to add a new static page called about.js to an existing Next.js project?
2If you need a simple API endpoint that returns a JSON list of users, how would you create it in Next.js?
2-5 years experience
1We have a product‑detail page that should be generated at build time but also support new products added after deployment. How would you implement that with Next.js?
2A page using getStaticProps is still showing old data after the source data changes. What could be causing this and how would you fix it?
3You added a dynamic route [slug].tsx, but it works locally and returns 404 in production. What would you investigate?
5-8 years experience
1Design a scalable architecture for a Next.js site that serves both SSR pages and heavily cached static pages across multiple regions. What trade‑offs do you consider?
2Our blog has 100k posts and we want to use Incremental Static Regeneration. How would you structure the data fetching and revalidation to keep build times low?
3How would you implement authentication middleware that protects certain routes without adding noticeable latency?
8+ years experience
1We are migrating a large monolithic React application to Next.js. What incremental migration strategy would you propose to minimize disruption?
2Several product teams need a shared routing and data‑fetching convention in Next.js. How would you design a reusable library or framework to enforce consistency and support future upgrades?
3Discuss the long‑term maintenance implications of using a custom Node server versus Vercel edge functions for handling authentication in a Next.js app.
Follow-up Questions
What would you check if the page you added returns a 404?
How do you test that an API route works after deployment?
Can you explain a pitfall when using getStaticProps with external data?
Sharethis question
Share via WhatsApp, X, Facebook, LinkedIn or copy link. Open Graph preview enabled.