Back to Developer Roadmap

Caching API Endpoints in Next.js

src/data/roadmaps/nextjs/content/[email protected]

4.0776 B
Original Source

Caching API Endpoints in Next.js

When you don't know the exact route segment names ahead of time and want to create routes from dynamic data, you can use Dynamic Segments that are filled in at request time or prerendered at build time. One example is catch-all segments, which allow you to extend API Routes to catch all subsequent paths.

Visit the following resources to learn more: