We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
/
1 parent 62ba8dc commit 55b18e6Copy full SHA for 55b18e6
src/helpers/files.ts
@@ -111,7 +111,7 @@ export const moveStaticPages = async ({
111
Object.entries(prerenderManifest.routes).forEach(([route, { initialRevalidateSeconds }]) => {
112
if (initialRevalidateSeconds) {
113
// Find all files used by ISR routes
114
- const trimmedPath = route.slice(1)
+ const trimmedPath = route === '/' ? 'index' : route.slice(1)
115
isrFiles.add(`${trimmedPath}.html`)
116
isrFiles.add(`${trimmedPath}.json`)
117
if (initialRevalidateSeconds < MINIMUM_REVALIDATE_SECONDS) {
0 commit comments