This commit is contained in:
kakkokari-gtyih 2023-12-04 22:54:35 +09:00
parent f09922385b
commit d219109d20

View File

@ -8,6 +8,7 @@ export function getStaticEndpoints(): string[] {
const files = getFiles(dir); const files = getFiles(dir);
const filtered = files const filtered = files
.filter((file) => !file.includes('slug')) // exclude dynamic content .filter((file) => !file.includes('slug')) // exclude dynamic content
.filter((file) => !/-ignore\.vue$/.test(file)) // ignore
.map((file) => file.split('pages')[1]) .map((file) => file.split('pages')[1])
.map((file) => file.replaceAll('\\', '/')) .map((file) => file.replaceAll('\\', '/'))
.map((file) => { .map((file) => {