Skip to content

v3: Cant extend config #4129

Open
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. 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!

  2. MickL commented on Mar 20, 2026

    @MickL
    ContributorAuthor
  3. 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 :)

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

    @pi0
    Member

    self assigned since have to investigate this...

  6. MickL commented on Aug 9, 2026

    @MickL
    ContributorAuthor

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

  7. added
    bugSomething isn't working
    and removed on Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingv3

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions