I ran Astro blog locally and it showed up fine, but after deploying to Netlify, I found that some links of dynamic routes were not created on the site, so I built them on my local side, and after comparing, I found that Netlify did not generate the dynamic routes completely when building the files.
Take the picture as an example, the
blog/tag/astro/index.html is created locally, but on Netlify, there is no such file as
blog/tag/astro/index.html (but there are other tag page files), I don’t know how to solve this problem.
First is the result of a local build, you can see that log
/tag/astro/index.html has been generated.
Second is the html file generated on Netlify without
Incidentally, I did try to click “Clear cache and retry with latest branch commit” to redeploy once, but I still get the same result.
The page appears to exist: 文章列表 - 嘿！日安 (riancc.netlify.app), have you resolved the issue?
No, I haven’t done anything special to set it up or change it, but I have noticed a difference in the results of redeploying it, and I don’t understand why, it’s a very paradoxical thing. I’ll be watching for links to new articles that have been posted recently, I suspect the same thing may happen again.
i have deployed the new post, then my category and hashtag is not deployed.
The new category and hashtag is exist.
These are the files in your latest deploy:
I’m not seeing a file for the pages you’ve linked.
Yes, because it should have been built, but it wasn’t. Locally, it’s normal; the file has been completely built.