v3: Cant extend config
Open
@pi0 is already working on this.
Since Apr 10, 2026.
bug
v3
- Dominant language
- TypeScript
- Stars
- 11.2k
- Forks
- 899
- Avg merge
- 2d 24m
- Merged PRs (30d)
- 40
Description
Environment
Nitro 3.0.260311-beta
Describe the bug
Extending a config object throws:
Cannot extend config from { ... }
Reproduction
Reproduction: https://github.com/MickL/nitro-extend-config-bug
nitro.config.ts:
import { defineConfig } from 'nitro';
import { baseConfig } from './base.config.ts';
export default defineConfig({
extends: baseConfig,
serverDir: './',
});
base.config.ts:
import { defineConfig } from 'nitro';
export const baseConfig = defineConfig({
runtimeConfig: {
databaseUrl: '',
},
});
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.