I renamed a file using: git mv filename.mdx filename.md
It’s a file in an Astro content collection: /content/blog/filename.mdx
The build works fine locally. I tried using vercel --prod
, not working.
I guess it’s a cache problem. I tried “push everything” in the project settings › data cache but it doesn’t solve the problem.
I renamed the file to .mdx
and vercel --prod
, and it worked.
I renamed back to .md
and vercel --prod
, and it failed again.
Error:
[vite]: Rollup failed to resolve import "astro:content-layer-deferred-module?astro%3Acontent-layer-deferred-module=&fileName=src%2Fcontent%2Fblog%2Ffilename.mdx&astroContentModuleFlag=true" from "/vercel/path0/.astro/content-modules.mjs".