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 /tag/astro/index.html
.
My site:riancc.netlify.app
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.
heyrian
November 10, 2023, 8:21am
4
i have deployed the new post, then my category and hashtag is not deployed.
The new category and hashtag is exist.
life category
new hashtag
These are the files in your latest deploy:
/robots.txt
/registersw.js
/sitemap-index.xml
/manifest.webmanifest
/admin/index.html
/pwa-64x64.png
/sw.js
/index.css
/favicon.ico
/apple-touch-icon-180x180.png
/rss.xml
/pwa-192x192.png
/logo.svg
/favicon.svg
/admin/config.yml
/images/logo.svg
/images/favicon.png
/sitemap-0.xml
/images/logo-darkmode.png
/images/logo.png
/maskable-icon-512x512.png
/_astro/workbox-window.prod.es5.a7b12eab.js
/_astro/hoisted.6c6ad4af.js
/pwa-512x512.png
/locales/zh/translation.json
/_astro/inter-vietnamese-wght-normal.ac4e131c.woff2
/locales/en/translation.json
/locales/ja/translation.json
/_astro/inter-greek-ext-wght-normal.fe977ddb.woff2
/_astro/banner.5440055d_zuwotk.webp
/_astro/banner.5440055d_z22rfs.webp
/workbox-fa446783.js
/404.html
/en/404/index.html
/ja/404/index.html
/_astro/inter-cyrillic-wght-normal.262a1054.woff2
/en/blog/tag/astro/index.html
/blog/tag/astro/index.html
/en/blog/tag/webdev/index.html
/blog/tag/webdev/index.html
/en/blog/tag/frontend/index.html
/blog/tag/frontend/index.html
/ja/blog/tag/astro/index.html
/ja/blog/tag/webdev/index.html
/ja/blog/tag/frontend/index.html
/en/blog/category/development/index.html
/blog/category/development/index.html
/ja/blog/category/development/index.html
/login/index.html
/en/login/index.html
/ja/login/index.html
/en/blog/index.html
/blog/index.html
/contact/index.html
/en/contact/index.html
/ja/blog/index.html
/ja/contact/index.html
/privacy-policy/index.html
/en/privacy-policy/index.html
/ja/privacy-policy/index.html
/_astro/inter-greek-wght-normal.89b4a3fe.woff2
/_astro/banner.5440055d.png
/_astro/inter-cyrillic-ext-wght-normal.848492d3.woff2
/blog/the-first-case-debriefing-after-returning/index.html
/en/blog/the-first-case-debriefing-after-returning/index.html
/ja/blog/the-first-case-debriefing-after-returning/index.html
/blog/explore-wordpress-hexo-vitepress-astro-choice/index.html
/ja/blog/explore-wordpress-hexo-vitepress-astro-choice/index.html
/en/blog/explore-wordpress-hexo-vitepress-astro-choice/index.html
/_astro/inter-latin-wght-normal.450f3ba4.woff2
/about/index.html
/en/about/index.html
/ja/about/index.html
/_astro/page.eb952472.js
/pricing/index.html
/en/pricing/index.html
/ja/pricing/index.html
/en/index.html
/en/animated/index.html
/ja/index.html
/ja/animated/index.html
/index.html
/animated/index.html
/_astro/inter-latin-ext-wght-normal.45606f83.woff2
/images/hexo.png
/_astro/404.67889353.css
/images/the-first-case-debriefing-after-returning-cover.png
/images/build-blog-so-easy-by-astro.png
/images/good-doc-let-me-cry.png
/meta/opengraph.png
/images/tailwind.png
/images/decapcms.png
/images/alpinjs.png
/images/tik-tok-ads.png
/images/chat-gpt.png
/images/astrojs.png
I’m not seeing a file for the pages you’ve linked.
heyrian
November 20, 2023, 11:16am
6
Yes, because it should have been built, but it wasn’t. Locally, it’s normal; the file has been completely built.