Skip to content

v3: Cant extend config #4129

Open

Description

@MickL

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: '',
  },
});

Activity

  1. added
    pending triage
    on Mar 18, 2026
  2. Mishra-coder commented on Mar 20, 2026

    @Mishra-coder

    Hi! I’d like to work on this issue. Could you please assign it to me? I’ll make sure to follow the contribution guidelines. Thanks!

  3. MickL commented on Mar 20, 2026

    @MickL
    ContributorAuthor
  4. RihanArfan commented on Apr 10, 2026

    @RihanArfan
    Member

    @Mishra-coder feel free to open a PR even if the issue isn't assigned to you :)

  5. self-assigned this
    on Apr 10, 2026
  6. pi0 commented on Apr 10, 2026

    @pi0
    Member

    self assigned since have to investigate this...

  7. MickL commented on Aug 9, 2026

    @MickL
    ContributorAuthor

    @pi0 I saw a beta was released but extending configs is still broken right?

  8. added
    bug
    and removed
    pending triage
    on Sep 2, 2026
  9. added
    config
    and removed
    bug
    on Nov 10, 2026
  10. added theissue type on Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

config

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions