Skip to content
Discussion options

You must be logged in to vote

You are looking in the right area, but defineNitroPreset is an internal helper for Nitro's built-in presets, not the public extension point I would import from an external adapter package.

The supported surfaces I see are:

  1. preset: selects a known generated preset name.
  2. extends: can merge a preset/config layer, and the public config type allows an inline NitroPreset.
  3. defaultPreset: can be a preset name or inline preset, but only as the fallback when no explicit preset / provider auto-detection wins.

So for a local experimental Bunny adapter, I would start with an inline preset/config layer instead of trying to register a new named preset:

// nitro.config.ts
import { resolve } from "node:…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by okikio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants