parent
39f68f0051
commit
9d0a823351
23 changed files with 1158 additions and 31 deletions
|
|
@ -1,10 +1,10 @@
|
|||
import fs from "node:fs/promises";
|
||||
import { relativeWebsitePath, routeFromRelativePath, sourcePathFromRoute, walkHtmlFiles } from "../lib/static-pages";
|
||||
import { isMigratedHtmlPage, relativeWebsitePath, routeFromRelativePath, sourcePathFromRoute, walkHtmlFiles } from "../lib/static-pages";
|
||||
|
||||
export function getStaticPaths() {
|
||||
return walkHtmlFiles()
|
||||
.map(relativeWebsitePath)
|
||||
.filter((relativePath) => relativePath !== "index.html")
|
||||
.filter((relativePath) => !isMigratedHtmlPage(relativePath))
|
||||
.map((relativePath) => ({
|
||||
params: {
|
||||
route: routeFromRelativePath(relativePath),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue