Skip to content

fix(nuxt): Use options.rootDir instead of options.srcDir#19343

Merged
s1gr1d merged 3 commits intodevelopfrom
sig/nitro-dir-option
Feb 16, 2026
Merged

fix(nuxt): Use options.rootDir instead of options.srcDir#19343
s1gr1d merged 3 commits intodevelopfrom
sig/nitro-dir-option

Conversation

@s1gr1d
Copy link
Member

@s1gr1d s1gr1d commented Feb 16, 2026

Closes #19335

@s1gr1d s1gr1d requested a review from andreiborza February 16, 2026 14:35
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.


buildStart() {
const configPath = createResolver(nitro.options.srcDir).resolve(`/${serverConfigFile}`);
const configPath = createResolver(nitro.options.rootDir).resolve(`/${serverConfigFile}`);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix lacks regression test coverage

Low Severity

This fix changes path resolution from nitro.options.srcDir to nitro.options.rootDir, but no unit, integration, or e2e test was added to verify the regression path. That leaves the behavior around serverConfigFile resolution unguarded against future regressions.

Fix in Cursor Fix in Web

Triggered by project rule: PR Review Guidelines for Cursor Bot

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The E2E tests already test for that - if the server-side cannot be set up, it does not work.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 16, 2026

Codecov Results 📊


Generated by Codecov Action

@s1gr1d s1gr1d merged commit c7614d1 into develop Feb 16, 2026
41 checks passed
@s1gr1d s1gr1d deleted the sig/nitro-dir-option branch February 16, 2026 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Nuxt] Change usage of nitro.options.srcDir

2 participants