Closed wanghaisheng closed 11 months ago
▶ src/pages/blog/[...page].astro is build but ▶ src/pages/toolkit/[...page].astro is apprarently not
netlify is the same
11:10:41 AM: Netlify Build
11:10:41 AM: ────────────────────────────────────────────────────────────────
11:10:41 AM:
11:10:41 AM: ❯ Version
11:10:41 AM: @netlify/build 29.16.0
11:10:41 AM:
11:10:41 AM: ❯ Flags
11:10:41 AM: baseRelDir: true
11:10:41 AM: buildId: 64af6afd60c5b40008171b1c
11:10:41 AM: deployId: 64af6afe60c5b40008171b1e
11:10:41 AM:
11:10:41 AM: ❯ Current directory
11:10:41 AM: /opt/build/repo
11:10:41 AM:
11:10:41 AM: ❯ Config file
11:10:41 AM: /opt/build/repo/netlify.toml
11:10:41 AM:
11:10:41 AM: ❯ Context
11:10:41 AM: production
11:10:41 AM:
11:10:41 AM: build.command from netlify.toml
11:10:41 AM: ────────────────────────────────────────────────────────────────
11:10:41 AM:
11:10:41 AM: $ pnpm build
11:10:41 AM: > @example/minimal@0.0.1 build /opt/build/repo
11:10:41 AM: > astro build
11:10:43 AM: 03:10:43 AM [content] Types generated 658ms
11:10:43 AM: 03:10:43 AM [build] output target: server
11:10:43 AM: 03:10:43 AM [build] deploy adapter: @astrojs/netlify/functions
11:10:43 AM: 03:10:43 AM [build] Collecting build info...
11:10:43 AM: 03:10:43 AM [build] Completed in 1.04s.
11:10:43 AM: 03:10:43 AM [build] Building server entrypoints...
11:10:53 AM: 03:10:53 AM [build] Completed in 9.42s.
11:10:53 AM:
11:10:53 AM: building client
11:10:54 AM: Completed in 1.83s.
11:10:54 AM:
11:10:55 AM:
11:10:55 AM: prerendering static routes
11:10:55 AM: ▶ src/pages/index.astro
11:10:55 AM: [astro-icon] No sprites found while rendering /
11:10:55 AM: └─ /index.html (+403ms)
11:10:55 AM: ▶ src/pages/interaction-tools/index.astro
11:10:55 AM: └─ /interaction-tools/index.html (+47ms)
11:10:55 AM: ▶ src/pages/interaction-tools/[slug].astro
11:10:55 AM: └─ /interaction-tools/senior-software-engineer-open-source/index.html (+55ms)
11:10:55 AM: ▶ src/pages/wallpapers/index.astro
11:10:55 AM: └─ /wallpapers/index.html (+44ms)
11:10:55 AM: ▶ src/pages/resources/index.astro
11:10:55 AM: └─ /resources/index.html (+50ms)
11:10:55 AM: ▶ src/pages/showcase/[...page].astro
11:10:56 AM: └─ /showcase/index.html (+46ms)
11:10:56 AM: ▶ src/pages/toolkits/details/[slug].astro
11:10:56 AM: ├─ /toolkits/details/brand-social-influence-analyze/index.html (+66ms)
11:10:56 AM: ├─ /toolkits/details/brand-social-media-account-creation/index.html (+126ms)
11:10:56 AM: ├─ /toolkits/details/brand-tweets-monitor/index.html (+176ms)
11:10:56 AM: ├─ /toolkits/details/dump-brand-website-to-local/index.html (+222ms)
11:10:56 AM: ├─ /toolkits/details/grabstoreurls/index.html (+272ms)
11:10:56 AM: ├─ /toolkits/details/longtail-keywords-expand-tools-gui/index.html (+372ms)
11:10:56 AM: ├─ /toolkits/details/shopifystoredatabase/index.html (+420ms)
11:10:56 AM: └─ /toolkits/details/submit-url-to-search-engine/index.html (+467ms)
11:10:56 AM: ▶ src/pages/careers/index.astro
11:10:56 AM: └─ /careers/index.html (+41ms)
11:10:56 AM: ▶ src/pages/careers/[slug].astro
11:10:56 AM: └─ /careers/senior-software-engineer-open-source/index.html (+38ms)
11:10:56 AM: ▶ src/pages/themes/details/[slug].astro
11:10:56 AM: └─ /themes/details/tiny-rocket/index.html (+45ms)
11:10:56 AM: ▶ src/pages/videos/index.astro
11:10:56 AM: └─ /videos/index.html (+49ms)
11:10:56 AM: ▶ src/pages/about/index.astro
11:10:56 AM: └─ /about/index.html (+78ms)
11:10:56 AM: ▶ src/pages/blog/[slug].astro
11:10:56 AM: ├─ /blog/brand-building-components/index.html (+90ms)
11:10:56 AM: ├─ /blog/brand-monitor-task/index.html (+133ms)
11:10:56 AM: ├─ /blog/chatgpt-generated-slogn/index.html (+174ms)
11:10:56 AM: ├─ /blog/email-collecting-tool-for-brand/index.html (+223ms)
11:10:57 AM: ├─ /blog/how-can-chatgpt-aid-brand-monitoring/index.html (+271ms)
11:10:57 AM: ├─ /blog/how-to-use-google-tag-manager/index.html (+312ms)
11:10:57 AM: └─ /blog/product-message/index.html (+349ms)
11:10:57 AM: ▶ src/pages/blog/[...page].astro
11:10:57 AM: └─ /blog/index.html (+35ms)
11:10:57 AM: ▶ src/pages/test/details/[slug].astro
11:10:57 AM: ├─ /test/details/brand-social-influence-analyze/index.html (+46ms)
11:10:57 AM: ├─ /test/details/brand-social-media-account-creation/index.html (+87ms)
11:10:57 AM: ├─ /test/details/brand-tweets-monitor/index.html (+127ms)
11:10:57 AM: ├─ /test/details/dump-brand-website-to-local/index.html (+167ms)
11:10:57 AM: ├─ /test/details/grabstoreurls/index.html (+220ms)
11:10:57 AM: ├─ /test/details/longtail-keywords-expand-tools-gui/index.html (+346ms)
11:10:57 AM: ├─ /test/details/shopifystoredatabase/index.html (+399ms)
11:10:57 AM: └─ /test/details/submit-url-to-search-engine/index.html (+437ms)
11:10:57 AM: ▶ src/pages/404.astro
11:10:57 AM: └─ /404.html (+30ms)
11:10:57 AM: λ src/pages/api/showcase.json.ts
11:10:57 AM: └─ /api/showcase.json (+1ms)
11:10:57 AM: ▶ src/pages/on/[platform].astro
11:10:57 AM: ├─ /on/github/index.html (+1ms)
11:10:57 AM: ├─ /on/discord/index.html (+3ms)
11:10:57 AM: ├─ /on/twitter/index.html (+3ms)
11:10:57 AM: ├─ /on/tiktok/index.html (+4ms)
11:10:57 AM: ├─ /on/youtube/index.html (+4ms)
11:10:57 AM: └─ /on/mastodon/index.html (+5ms)
11:10:57 AM: ▶ src/pages/[slug].astro
11:10:57 AM: ├─ /privacy/index.html (+55ms)
11:10:57 AM: └─ /terms/index.html (+88ms)
11:10:57 AM: Completed in 2.35s.
11:10:57 AM:
11:10:57 AM:
11:10:57 AM: finalizing server assets
11:10:57 AM: 03:10:57 AM [build] Rearranging server assets...
11:10:57 AM: @astrojs/sitemap: `sitemap-index.xml` is created.
11:10:57 AM: 03:10:57 AM [build] Server built in 15.24s
11:10:57 AM: 03:10:57 AM [build] Complete!
11:10:57 AM:
11:10:57 AM: (build.command completed in 16.6s)
@bluwy
Unfortunately I'm really struggling to debug this issue since it looks like the repo at https://github.com/wanghaisheng/idea-to-action-cycle is quite different from when you opened this. Please open a new issue and include a link to a minimal example that demonstrates the problem. You can use https://astro.new/minimal to create one.
@natemoo-re I dont figure out why vercel and netlify wont work well on SSR page you can use subfolder to test https://github.com/wanghaisheng/idea-to-action-cycle/blob/vercel/apps/conna/ toolkit endpoint is copied from original themes and modify a little
if you deploy this sub folder in vercel ,/toolkit endpoint 404 , bubt deploy root folder in vercel ,it works well for ssr page like toolkit
What version of
astro
are you using?2.0.16
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
npm
What operating system are you using?
windows
What browser are you using?
firefox
Describe the Bug
i clone astro build repo and edit it , when run locally npm run dev localhost:3000/toolkits works well but after deploy vercel, it is 404
What's the expected result?
it should work like local dev environments
Link to Minimal Reproducible Example
https://github.com/wanghaisheng/idea-to-action-cycle
Participation