Skip to content

Commit 226d3ee

Browse files
committed
fix: exclude 'blog' pageType from generated pages in the root folder
1 parent dd3e21c commit 226d3ee

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pages/[[...slug]].tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ export const getStaticPaths: GetStaticPaths = async (context) => {
131131
return { paths: [], fallback: true }
132132
}
133133

134-
const allPages = await fetchPages(config.apiKey)
134+
const allPages = await fetchPages(config.apiKey, {
135+
types: ['page', 'pokemon'],
136+
})
135137

136138
const paths = allPages
137139
.map((page) =>

0 commit comments

Comments
 (0)