d7bfe34bb1
- add postinstall, dev, and build scripts to run `zen-modules sync` - append `app/.zen/modules.generated.js` to .gitignore during init - add generated modules file template with empty modules export - import modules.generated.js in app layout and pass modules to initializeZen
8 lines
256 B
JavaScript
8 lines
256 B
JavaScript
export async function register() {
|
|
if (process.env.NEXT_RUNTIME === 'nodejs') {
|
|
const { initializeZen } = await import('@zen/core');
|
|
const { modules } = await import('./app/.zen/modules.generated.js');
|
|
await initializeZen({ modules });
|
|
}
|
|
}
|