Skip to content

Next.js example app with dynamic routes and Cypress tests

Notifications You must be signed in to change notification settings

bahmutov/dynamic-routing-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dynamic Routing example

This example shows how to do dynamic routing in Next.js. It contains two dynamic routes:

  1. pages/post/[id]/index.js
    • e.g. matches /post/my-example (/post/:id)
  2. pages/post/[id]/[comment].js
    • e.g. matches /post/my-example/a-comment (/post/:id/:comment)

Cypress tests

Run tests using

yarn local

Read the Parse and use URL

About

Next.js example app with dynamic routes and Cypress tests

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published