UNPKG

vike

Version:

(Replaces Next.js/Nuxt) 🔨 Composable framework to build advanced applications with flexibility and stability.

11 lines (10 loc) • 363 B
export { determinePageIdOld }; import { assert } from '../utils/assert.js'; import { slice } from '../utils/slice.js'; // TO-DO/next-major-release: remove function determinePageIdOld(filePath) { const pageSuffix = '.page.'; const pageId = slice(filePath.split(pageSuffix), 0, -1).join(pageSuffix); assert(!pageId.includes('\\')); return pageId; }