Skip to content

@kekkai/blueprint / nextPreset

Function: nextPreset() ​

nextPreset(options?): Blueprint

Defined in: src/presets/presets.ts:229

Canonical Next.js blueprint. The route tree (app/ and/or pages/) is the top layer — file unit layout, since file-based routing owns its own file names and nesting. No fetch ownership: server components fetch everywhere by design, so restricting it to one layer would be a lie. srcDir picks the source root (src vs the project root, where app/ sits without --src-dir).

Parameters ​

options? ​

NextPresetOptions = {}

Returns ​

Blueprint

Example ​

ts
export default nextPreset({ router: 'app', srcDir: true });