checks
Some checks are pending
/ deploy (push) Waiting to run

This commit is contained in:
Loyyd 2026-06-11 09:54:39 +02:00
parent 39f68f0051
commit 9d0a823351
23 changed files with 1158 additions and 31 deletions

View file

@ -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),