get-page-slugs.tsx

src/tools/get-page-slugs.tsx
import { readdirSync, statSync, existsSync } from 'fs'
import path from 'path'
type PageSlugItem = {
slug: string
modified: string
uri: string
}
const BLOCKED_ROUTE_GROUPS = ['(demo)']
const EXCLUDED_FOLDERS = [
'api',
'post', // Posts are handled separately
]
export async function getPageSlugs(): Promise<{ pageSlugs: PageSlugItem[] }> {
const appDir = path.join(process.cwd(), 'src/app')
const out: PageSlugItem[] = []
function scanRouteGroup(routeGroupPath: string): void {

Showing the first 20 lines.

Get full code

Support

Talk to the developers of this project to learn more

We have been building professional websites for big clients for over 15 years. Gallop templates and blocks is our best foundation for SEO websites and web apps.

© 2026 Web Plant Media, LLC