nuxt / content

The file-based CMS for your Nuxt application, powered by Markdown and Vue components.
https://content.nuxt.com
MIT License
3.09k stars 623 forks source link

generate error when md filename contain dot #2368

Open Otto-J opened 11 months ago

Otto-J commented 11 months ago

Environment

Working directory: /home/projects/nuxt-starter-efbp6c 22:02:45 Nuxt project info: 22:02:45


๐Ÿ‘‰ Report an issue: https://github.com/nuxt/nuxt/issues/new 22:02:45

๐Ÿ‘‰ Suggest an improvement: https://github.com/nuxt/nuxt/discussions/new

๐Ÿ‘‰ Read documentation: https://nuxt.com

Reproduction

https://stackblitz.com/edit/nuxt-starter-efbp6c?file=app.vue

Describe the bug

A file whose filename contains dot can be accessed in the case of npm run dev, but not after npm run generate

see demo, there has a intro-vue.js.md and intro-react.md in content.

run npm run dev๏ผŒthe website is ok. But after run generate: intro-vue.js - error intro-react - ok

Additional context

No response

Logs

No response

github-actions[bot] commented 3 days ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.