Skip to content

Minimal reproduction getStaticProps redirction bug

Notifications You must be signed in to change notification settings

cvolant/i18n-routing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bug reproduction

This reproduction is based on Next i18n-routing official example. A redirection is added in getStaticProps to a different locale, which creates a bug.

It seems that the inter-locale redirections are not supported in the getStaticProps/getServerSideProps: the same api for redirects than in next.config.js with locale: false would be needed.

Reproduction steps

  • yarn install
  • yarn build
  • yarn start

getStaticProps

getServerSideProps

About

Minimal reproduction getStaticProps redirction bug

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published