Skip to content

Conversation

@hendrikheil
Copy link
Contributor

@hendrikheil hendrikheil commented Jan 19, 2026

A recent fix in #228 causes any file creation in a folder to be broken.
This might be related to the rename / create issue I am experiencing in #274

This change will perform the slugify call only on the newly entered fullName value of the path, which does not touch the fsPath context. slugify automatically removed the slashes from the whole joined path.

For example, previous to this change:

parentItem.fsPath: 3.pages/
fullName: example file.md
newFsPath: 3.pagesexample-file.md

After:

parentItem.fsPath: 3.pages/
fullName: example file.md
newFsPath: 3.pages/example-file.md

@vercel
Copy link
Contributor

vercel bot commented Jan 19, 2026

@hendrikheil is attempting to deploy a commit to the Nuxt Team on Vercel.

A member of the Team first needs to authorize it.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 19, 2026

npm i https://pkg.pr.new/nuxt-content/nuxt-studio@290

commit: 96d92ea

Copy link
Contributor

@larbish larbish left a comment

Choose a reason for hiding this comment

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

Thanks!

@larbish larbish merged commit fab454f into nuxt-content:main Jan 19, 2026
2 of 4 checks passed
@hendrikheil hendrikheil deleted the fix/file-creation-wrong-path branch January 19, 2026 08:55
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.

2 participants