mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-09-18 13:25:32 -04:00
update CSRF config
This commit is contained in:
@@ -16,15 +16,14 @@ const sitemap = async (): Promise<MetadataRoute.Sitemap> => {
|
||||
];
|
||||
|
||||
// add each directory in the app folder as a route (excluding special routes)
|
||||
const appDir = path.resolve(process.cwd(), "app");
|
||||
(
|
||||
await glob("**/page.{tsx,mdx}", {
|
||||
cwd: appDir,
|
||||
cwd: path.join(process.cwd(), "app"),
|
||||
ignore: [
|
||||
// homepage already included manually above
|
||||
"page.tsx",
|
||||
// homepage is already included manually above
|
||||
"./page.tsx",
|
||||
// don't include dynamic routes
|
||||
"notes/[slug]/page.tsx",
|
||||
"**/\\[*\\]/page.tsx",
|
||||
],
|
||||
})
|
||||
).forEach((route) => {
|
||||
|
Reference in New Issue
Block a user