feat(blog): add file-based blog with dynamic slugs, MDX content and layout shell
- Introduced blog routing using Next.js App Router - Implemented dynamic [slug] pages for blog posts - Added MDX-based content loading via lib/posts - Integrated shared TopBar layout with navigation - Established clear content, lib and component separation
This commit is contained in:
23
apps/public-web/node_modules/next/dist/server/get-page-files.js
generated
vendored
Normal file
23
apps/public-web/node_modules/next/dist/server/get-page-files.js
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "getPageFiles", {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return getPageFiles;
|
||||
}
|
||||
});
|
||||
const _denormalizepagepath = require("../shared/lib/page-path/denormalize-page-path");
|
||||
const _normalizepagepath = require("../shared/lib/page-path/normalize-page-path");
|
||||
function getPageFiles(buildManifest, page) {
|
||||
const normalizedPage = (0, _denormalizepagepath.denormalizePagePath)((0, _normalizepagepath.normalizePagePath)(page));
|
||||
let files = buildManifest.pages[normalizedPage];
|
||||
if (!files) {
|
||||
console.warn(`Could not find files for ${normalizedPage} in .next/build-manifest.json`);
|
||||
return [];
|
||||
}
|
||||
return files;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=get-page-files.js.map
|
||||
Reference in New Issue
Block a user