\n\n**Problem:**\nIn the **development** mode all works perfectly (`npm run dev`)\nIn the **production** mode route `/id/1` returns 404 error (`npm run build && npm run preview`)\n\u003Cimg width=\"1242\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/17d7ebe0-6ba8-424f-9827-7f47fc31dd12\" />\n\n\n\n\n### Additional context\n\nI expect the **same behavior** in the dev and prod modes\n\nNitro code is [here](https://github.com/nitrojs/nitro/blob/3845524bbf50bc9ce43b914fbb1e9a10d6294046/src/runtime/internal/static.ts#L68) \n\n\n\n### Logs\n\n```shell-script\n\n```",[2999,3002,3005,3008],{"name":3000,"color":3001},"dx","C39D69",{"name":3003,"color":3004},"bug","d73a4a",{"name":3006,"color":3007},"nitro","bfd4f2",{"name":3009,"color":3010},"vite","3574D1",31514,"`Cannot find static asset` if nuxt dynamic route matches `buildAssetsDir`","2025-03-27T15:07:26Z","https://github.com/nuxt/nuxt/issues/31514",0.6557316,["Reactive",3017],{},["Set"],["ShallowReactive",3020],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fIKr2txW3yR4BOOdb8NX1rZRgQWeUGw5JErIoFk3XHCo":-1},"/nuxt/nuxt/29233"]