// @ts-expect-error virtual file import _routes from '#build/routes' interface NuxtRoute { path: string | RegExp component: any meta?: Record } export const routes: NuxtRoute[] = _routes export const match = (path: string) => routes.find(r => typeof r.path === 'string' ? r.path === path : r.path.test(path) )