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:
24
apps/public-web/node_modules/next/dist/build/templates/edge-wrapper.js
generated
vendored
Normal file
24
apps/public-web/node_modules/next/dist/build/templates/edge-wrapper.js
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
// The wrapped module could be an async module, we handle that with the proxy
|
||||
// here. The comma expression makes sure we don't call the function with the
|
||||
// module as the "this" arg.
|
||||
// Turn exports into functions that are also a thenable. This way you can await the whole object
|
||||
// or exports (e.g. for Components) or call them directly as though they are async functions
|
||||
// (e.g. edge functions/middleware, this is what the Edge Runtime does).
|
||||
// Catch promise to prevent UnhandledPromiseRejectionWarning, this will be propagated through
|
||||
// the awaited export(s) anyway.
|
||||
"use strict";
|
||||
self._ENTRIES ||= {};
|
||||
const modProm = import('MODULE');
|
||||
modProm.catch(()=>{});
|
||||
self._ENTRIES['VAR_ENTRY_NAME'] = new Proxy(modProm, {
|
||||
get (innerModProm, name) {
|
||||
if (name === 'then') {
|
||||
return (res, rej)=>innerModProm.then(res, rej);
|
||||
}
|
||||
let result = (...args)=>innerModProm.then((mod)=>(0, mod[name])(...args));
|
||||
result.then = (res, rej)=>innerModProm.then((mod)=>mod[name]).then(res, rej);
|
||||
return result;
|
||||
}
|
||||
});
|
||||
|
||||
//# sourceMappingURL=edge-wrapper.js.map
|
||||
Reference in New Issue
Block a user