Clarifying NextJS SSG build with localisation and resolving %2F issue
I’m creating my static paths as per my first screenshot with a path for each locale
But then during the build, the routes of SSG pages contains %2F char. Is this the normal behaviour or am I missing something
I’m currently on demand ISR for each local and it seems to work but I want to make sure that my static paths are generating correctly
Thanks in advance !
%2Fis the escaped code for
/- you don’t by chance have a folder named
/galleryincluding the slash? Additionally, the value for
slugshould just be
galleryand not
/gallery
/en/home,
/fr/homeetc - these come directly from your setup in sanity, you’ll need to change the slugs for index set in sanity to “/” I believe
Was this answer helpful?
Sanity – Build the way you think, not the way your CMS thinks
Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.