withastro/astro.build

fresh deploy on vercel /themes/ 404

Closed this issue · 4 comments

@delucis

locally npm run dev is fine

src/pages/themes/[...page].astro does not render at all

[09:22:47.313] Running build in San Francisco, USA (West) – sfo1
[09:22:47.374] Cloning github.com/auto-deploy-landingpage-inspirations/astro.build (Branch: main, Commit: ba3fc2a)
[09:22:47.506] Previous build cache not available
[09:22:56.419] Cloning completed: 9.045s
[09:22:57.041] Running "vercel build"
[09:22:57.557] Vercel CLI 31.0.2
[09:22:58.389] Detected `pnpm-lock.yaml` version 6 generated by pnpm 8...
[09:22:58.404] Installing dependencies...
[09:22:58.974] Lockfile is up to date, resolution step is skipped
[09:22:59.292] Packages: +1022
[09:22:59.292] ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[09:22:59.561] Progress: resolved 0, reused 0, downloaded 1, added 0
[09:22:59.676] Packages are hard linked from the content-addressable store to the virtual store.
[09:22:59.676]   Content-addressable store is at: /vercel/.local/share/pnpm/store/v3
[09:22:59.676]   Virtual store is at:             node_modules/.pnpm
[09:23:00.568] Progress: resolved 0, reused 0, downloaded 37, added 34
[09:23:01.572] Progress: resolved 0, reused 0, downloaded 82, added 54
[09:23:02.571] Progress: resolved 0, reused 0, downloaded 114, added 93
[09:23:03.571] Progress: resolved 0, reused 0, downloaded 176, added 164
[09:23:04.573] Progress: resolved 0, reused 0, downloaded 248, added 252
[09:23:05.573] Progress: resolved 0, reused 0, downloaded 319, added 330
[09:23:06.645] Progress: resolved 0, reused 0, downloaded 363, added 374
[09:23:07.645] Progress: resolved 0, reused 0, downloaded 470, added 485
[09:23:08.648] Progress: resolved 0, reused 0, downloaded 621, added 646
[09:23:09.652] Progress: resolved 0, reused 0, downloaded 738, added 804
[09:23:10.653] Progress: resolved 0, reused 0, downloaded 918, added 1011
[09:23:11.482] node_modules/sharp install$ (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
[09:23:11.632] node_modules/sharp install: sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.13.3/libvips-8.13.3-linux-x64.tar.br
[09:23:11.653] Progress: resolved 0, reused 0, downloaded 925, added 1022, done
[09:23:12.152] node_modules/sharp install: sharp: Integrity check passed for linux-x64
[09:23:12.561] node_modules/sharp install: Done
[09:23:12.661] node_modules/vite/node_modules/esbuild postinstall$ node install.js
[09:23:12.661] node_modules/esbuild postinstall$ node install.js
[09:23:12.737] node_modules/vite/node_modules/esbuild postinstall: Done
[09:23:12.747] node_modules/esbuild postinstall: Done
[09:23:12.888] node_modules/puppeteer postinstall$ node install.js
[09:23:18.227] node_modules/puppeteer postinstall: Chromium (1108766) downloaded to /vercel/.cache/puppeteer/chrome/linux-1108766
[09:23:18.233] node_modules/puppeteer postinstall: Done
[09:23:18.515] 
[09:23:18.640] Done in 20.1s
[09:23:18.707] Running "pnpm run build"
[09:23:19.225] 
[09:23:19.225] > @example/minimal@0.0.1 build /vercel/path0
[09:23:19.226] > astro build
[09:23:19.226] 
[09:23:23.380] 01:23:23 AM [content] Unsupported file types found. Prefix with an underscore (`_`) to ignore:
[09:23:23.380] - contenda-share-pear/screenshot1.webp
[09:23:23.381] contenda-share-pear/screenshot2.webp
[09:23:23.381] contenda-share-pear/videos-to-content.webp
[09:23:23.384] 01:23:23 AM [content] Types generated 1.70s
[09:23:23.385] 01:23:23 AM [build] output target: server
[09:23:23.385] 01:23:23 AM [build] deploy adapter: @astrojs/netlify/functions
[09:23:23.385] 01:23:23 AM [build] Collecting build info...
[09:23:23.386] 01:23:23 AM [build] Completed in 2.28s.
[09:23:23.387] 01:23:23 AM [build] Building server entrypoints...
[09:23:40.955] 
[09:23:40.956] /fonts/MDIO/Web/MDIO0.5-Regular.woff2 referenced in /vercel/path0/src/styles/fonts.css didn't resolve at build time, it will remain unchanged to be resolved at runtime
[09:23:40.956] 
[09:23:40.958] /fonts/Obviously/Obviously Normal/Web/Obviously-Light.woff2 referenced in /vercel/path0/src/styles/fonts.css didn't resolve at build time, it will remain unchanged to be resolved at runtime
[09:23:40.958] 
[09:23:40.958] /fonts/Obviously/Obviously Normal/Web/Obviously-Regular.woff2 referenced in /vercel/path0/src/styles/fonts.css didn't resolve at build time, it will remain unchanged to be resolved at runtime
[09:23:40.958] 
[09:23:40.958] /fonts/Obviously/Obviously Wide/Web/Obviously-Wide_Semibold.woff2 referenced in /vercel/path0/src/styles/fonts.css didn't resolve at build time, it will remain unchanged to be resolved at runtime
[09:23:46.097] 01:23:46 AM [build] Completed in 22.71s.
[09:23:46.097] 
[09:23:46.098]  building client 
[09:23:50.834] Generated an empty chunk: "hoisted".
[09:23:51.122] Completed in 5.03s.
[09:23:51.122] 
[09:23:51.475] 
[09:23:51.476]  prerendering static routes 
[09:23:51.759] ▶ src/pages/index.astro
[09:23:52.250]   └─ /index.html (+491ms)
[09:23:52.251] ▶ src/pages/case-studies/[slug].astro
[09:23:52.311]   └─ /case-studies/contenda-share-pear/index.html (+61ms)
[09:23:52.312] ▶ src/pages/wallpapers/index.astro
[09:23:52.356]   └─ /wallpapers/index.html (+45ms)
[09:23:52.357] ▶ src/pages/showcase/[...page].astro
[09:23:52.514]   ├─ /showcase/index.html (+158ms)
[09:23:52.570]   ├─ /showcase/2/index.html (+213ms)
[09:23:52.610]   ├─ /showcase/3/index.html (+253ms)
[09:23:52.654]   ├─ /showcase/4/index.html (+298ms)
[09:23:52.695]   ├─ /showcase/5/index.html (+339ms)
[09:23:52.743]   ├─ /showcase/6/index.html (+387ms)
[09:23:52.789]   ├─ /showcase/7/index.html (+433ms)
[09:23:52.831]   ├─ /showcase/8/index.html (+475ms)
[09:23:52.883]   ├─ /showcase/9/index.html (+527ms)
[09:23:52.925]   ├─ /showcase/10/index.html (+569ms)
[09:23:52.976]   ├─ /showcase/11/index.html (+620ms)
[09:23:53.017]   ├─ /showcase/12/index.html (+660ms)
[09:23:53.050]   └─ /showcase/13/index.html (+694ms)
[09:23:53.051] ▶ src/pages/careers/index.astro
[09:23:53.077]   └─ /careers/index.html (+26ms)
[09:23:53.077] ▶ src/pages/careers/[slug].astro
[09:23:53.113]   └─ /careers/senior-software-engineer-open-source/index.html (+37ms)
[09:23:53.114] ▶ src/pages/themes/details/[slug].astro
[09:23:53.185]   ├─ /themes/details/accessible-astro-dashboard/index.html (+71ms)
[09:23:53.231]   ├─ /themes/details/accessible-astro-starter/index.html (+118ms)
[09:23:53.270]   ├─ /themes/details/agencex/index.html (+157ms)
[09:23:53.306]   ├─ /themes/details/agnostic-ui/index.html (+192ms)
[09:23:53.350]   ├─ /themes/details/andromeda/index.html (+236ms)
[09:23:53.385]   ├─ /themes/details/art-portfolio/index.html (+272ms)
[09:23:53.420]   ├─ /themes/details/art-theme/index.html (+307ms)
[09:23:53.470]   ├─ /themes/details/astro-big-doc/index.html (+356ms)
[09:23:53.510]   ├─ /themes/details/astro-blog-markdown/index.html (+396ms)
[09:23:53.545]   ├─ /themes/details/astro-boilerplate/index.html (+432ms)
[09:23:53.579]   ├─ /themes/details/astro-boy/index.html (+465ms)
[09:23:53.613]   ├─ /themes/details/astro-business-template/index.html (+500ms)
[09:23:53.651]   ├─ /themes/details/astro-cactus/index.html (+538ms)
[09:23:53.688]   ├─ /themes/details/astro-cube/index.html (+574ms)
[09:23:53.723]   ├─ /themes/details/astro-cv/index.html (+609ms)
[09:23:53.756]   ├─ /themes/details/astro-design-system/index.html (+643ms)
[09:23:53.792]   ├─ /themes/details/astro-ecommerce/index.html (+679ms)
[09:23:53.827]   ├─ /themes/details/astro-fe-portfolio/index.html (+714ms)
[09:23:53.864]   ├─ /themes/details/astro-ink/index.html (+0.75s)
[09:23:53.903]   ├─ /themes/details/astro-landing-page/index.html (+0.79s)
[09:23:53.936]   ├─ /themes/details/astro-lane/index.html (+0.82s)
[09:23:53.973]   ├─ /themes/details/astro-minimal-blog/index.html (+0.86s)
[09:23:54.006]   ├─ /themes/details/astro-minimal-cv/index.html (+0.89s)
[09:23:54.040]   ├─ /themes/details/astro-minimal-starter/index.html (+0.93s)
[09:23:54.074]   ├─ /themes/details/astro-multiverse/index.html (+0.96s)
[09:23:54.107]   ├─ /themes/details/astro-neumorphismt/index.html (+0.99s)
[09:23:54.141]   ├─ /themes/details/astro-paper/index.html (+1.03s)
[09:23:54.178]   ├─ /themes/details/astro-portfolio/index.html (+1.06s)
[09:23:54.216]   ├─ /themes/details/astro-pwa-starter/index.html (+1.10s)
[09:23:54.249]   ├─ /themes/details/astro-resume/index.html (+1.14s)
[09:23:54.284]   ├─ /themes/details/astro-shopify/index.html (+1.17s)
[09:23:54.317]   ├─ /themes/details/astro-simple-blog-theme/index.html (+1.20s)
[09:23:54.349]   ├─ /themes/details/astro-wordpress-starter/index.html (+1.24s)
[09:23:54.391]   ├─ /themes/details/astrobiz/index.html (+1.28s)
[09:23:54.427]   ├─ /themes/details/astrobrew/index.html (+1.31s)
[09:23:54.463]   ├─ /themes/details/astrofy/index.html (+1.35s)
[09:23:54.500]   ├─ /themes/details/astrolus-premium/index.html (+1.39s)
[09:23:54.533]   ├─ /themes/details/astrolus/index.html (+1.42s)
[09:23:54.568]   ├─ /themes/details/astroplate/index.html (+1.45s)
[09:23:54.607]   ├─ /themes/details/astrosaas/index.html (+1.49s)
[09:23:54.643]   ├─ /themes/details/astroship/index.html (+1.53s)
[09:23:54.681]   ├─ /themes/details/astrowind/index.html (+1.57s)
[09:23:54.714]   ├─ /themes/details/aubergine/index.html (+1.60s)
[09:23:54.749]   ├─ /themes/details/aurora/index.html (+1.64s)
[09:23:54.782]   ├─ /themes/details/balanced-chef/index.html (+1.67s)
[09:23:54.816]   ├─ /themes/details/basics/index.html (+1.70s)
[09:23:54.851]   ├─ /themes/details/bigspring-light/index.html (+1.74s)
[09:23:54.884]   ├─ /themes/details/blog/index.html (+1.77s)
[09:23:54.922]   ├─ /themes/details/blogster-bubblegum/index.html (+1.81s)
[09:23:54.955]   ├─ /themes/details/blogster-minimal/index.html (+1.84s)
[09:23:54.991]   ├─ /themes/details/blogster-newspaper/index.html (+1.88s)
[09:23:55.024]   ├─ /themes/details/blogster-sleek/index.html (+1.91s)
[09:23:55.056]   ├─ /themes/details/bobs-blog/index.html (+1.94s)
[09:23:55.090]   ├─ /themes/details/bookworm-light/index.html (+1.98s)
[09:23:55.127]   ├─ /themes/details/brightlight/index.html (+2.01s)
[09:23:55.160]   ├─ /themes/details/brutal/index.html (+2.05s)
[09:23:55.193]   ├─ /themes/details/buio/index.html (+2.08s)
[09:23:55.229]   ├─ /themes/details/cannonball/index.html (+2.12s)
[09:23:55.263]   ├─ /themes/details/cmd_theme/index.html (+2.15s)
[09:23:55.305]   ├─ /themes/details/cosmic-cms-blog/index.html (+2.19s)
[09:23:55.352]   ├─ /themes/details/creek/index.html (+2.23s)
[09:23:55.386]   ├─ /themes/details/cuteblog/index.html (+2.27s)
[09:23:55.418]   ├─ /themes/details/daisy-blog/index.html (+2.31s)
[09:23:55.451]   ├─ /themes/details/dokto-doctor-appointments/index.html (+2.34s)
[09:23:55.489]   ├─ /themes/details/dusk/index.html (+2.38s)
[09:23:55.536]   ├─ /themes/details/engineering-blog/index.html (+2.42s)
[09:23:55.574]   ├─ /themes/details/flabbergasted/index.html (+2.46s)
[09:23:55.607]   ├─ /themes/details/flowbite/index.html (+2.49s)
[09:23:55.639]   ├─ /themes/details/galaxy/index.html (+2.53s)
[09:23:55.679]   ├─ /themes/details/gate/index.html (+2.57s)
[09:23:55.712]   ├─ /themes/details/gumori/index.html (+2.60s)
[09:23:55.744]   ├─ /themes/details/hello-astro/index.html (+2.63s)
[09:23:55.780]   ├─ /themes/details/hemingway/index.html (+2.67s)
[09:23:55.815]   ├─ /themes/details/industronix/index.html (+2.70s)
[09:23:55.849]   ├─ /themes/details/insight-blog/index.html (+2.74s)
[09:23:55.882]   ├─ /themes/details/jungley-landing-page/index.html (+2.77s)
[09:23:55.915]   ├─ /themes/details/landing-page-book/index.html (+2.80s)
[09:23:55.948]   ├─ /themes/details/littlesticks-simple-blog/index.html (+2.83s)
[09:23:55.984]   ├─ /themes/details/maewolff-portfolio-template/index.html (+2.87s)
[09:23:56.018]   ├─ /themes/details/manual/index.html (+2.90s)
[09:23:56.050]   ├─ /themes/details/massively/index.html (+2.94s)
[09:23:56.082]   ├─ /themes/details/minecraft-theme/index.html (+2.97s)
[09:23:56.115]   ├─ /themes/details/navy/index.html (+3.00s)
[09:23:56.148]   ├─ /themes/details/nebula/index.html (+3.03s)
[09:23:56.181]   ├─ /themes/details/nimbus-narratives/index.html (+3.07s)
[09:23:56.215]   ├─ /themes/details/odyssey/index.html (+3.10s)
[09:23:56.247]   ├─ /themes/details/pinwheel/index.html (+3.13s)
[09:23:56.281]   ├─ /themes/details/portfolio/index.html (+3.17s)
[09:23:56.314]   ├─ /themes/details/pro-file/index.html (+3.20s)
[09:23:56.351]   ├─ /themes/details/profoliox/index.html (+3.24s)
[09:23:56.386]   ├─ /themes/details/quick-store/index.html (+3.27s)
[09:23:56.418]   ├─ /themes/details/refo/index.html (+3.30s)
[09:23:56.455]   ├─ /themes/details/sarissa-blog/index.html (+3.34s)
[09:23:56.488]   ├─ /themes/details/semplice/index.html (+3.38s)
[09:23:56.530]   ├─ /themes/details/sendit/index.html (+3.42s)
[09:23:56.563]   ├─ /themes/details/simple-blog-template/index.html (+3.45s)
[09:23:56.598]   ├─ /themes/details/simplexity/index.html (+3.48s)
[09:23:56.631]   ├─ /themes/details/snowpeak/index.html (+3.52s)
[09:23:56.666]   ├─ /themes/details/spazio-bianco/index.html (+3.55s)
[09:23:56.699]   ├─ /themes/details/split/index.html (+3.59s)
[09:23:56.735]   ├─ /themes/details/spydea/index.html (+3.62s)
[09:23:56.768]   ├─ /themes/details/stablo-blog/index.html (+3.65s)
[09:23:56.803]   ├─ /themes/details/starlight/index.html (+3.69s)
[09:23:56.836]   ├─ /themes/details/strata/index.html (+3.72s)
[09:23:56.870]   ├─ /themes/details/super-solstice/index.html (+3.76s)
[09:23:56.904]   ├─ /themes/details/swissfolio/index.html (+3.79s)
[09:23:56.938]   ├─ /themes/details/tailcast/index.html (+3.82s)
[09:23:56.970]   └─ /themes/details/tiny-rocket/index.html (+3.86s)
[09:23:56.970] ▶ src/pages/about/index.astro
[09:23:57.016]   └─ /about/index.html (+46ms)
[09:23:57.016] ▶ src/pages/blog/[slug].astro
[09:23:57.122]   ├─ /blog/2023-web-framework-performance-report/index.html (+106ms)
[09:23:57.148]   ├─ /blog/astro-018/index.html (+132ms)
[09:23:57.184]   ├─ /blog/astro-019/index.html (+168ms)
[09:23:57.221]   ├─ /blog/astro-021-preview/index.html (+205ms)
[09:23:57.255]   ├─ /blog/astro-021-release/index.html (+239ms)
[09:23:57.286]   ├─ /blog/astro-023/index.html (+270ms)
[09:23:57.321]   ├─ /blog/astro-025/index.html (+305ms)
[09:23:57.364]   ├─ /blog/astro-1-beta-release/index.html (+347ms)
[09:23:57.392]   ├─ /blog/astro-1-hackathon/index.html (+376ms)
[09:23:57.419]   ├─ /blog/astro-1-release-update/index.html (+403ms)
[09:23:57.992]   ├─ /blog/astro-1/index.html (+0.98s)
[09:23:58.039]   ├─ /blog/astro-140/index.html (+1.02s)
[09:23:58.076]   ├─ /blog/astro-150/index.html (+1.06s)
[09:23:58.110]   ├─ /blog/astro-2/index.html (+1.09s)
[09:23:58.145]   ├─ /blog/astro-210/index.html (+1.13s)
[09:23:58.175]   ├─ /blog/astro-220/index.html (+1.16s)
[09:23:58.207]   ├─ /blog/astro-240/index.html (+1.19s)
[09:23:58.251]   ├─ /blog/astro-250/index.html (+1.24s)
[09:23:58.293]   ├─ /blog/astro-260/index.html (+1.28s)
[09:23:58.330]   ├─ /blog/astro-cloudcannon-support/index.html (+1.31s)
[09:23:58.362]   ├─ /blog/astro-repl/index.html (+1.35s)
[09:23:58.386]   ├─ /blog/astro-showcase/index.html (+1.37s)
[09:23:58.420]   ├─ /blog/astro-tutorial/index.html (+1.40s)
[09:23:58.444]   ├─ /blog/astro-vercel-launch/index.html (+1.43s)
[09:23:58.473]   ├─ /blog/astro-webstorm-support/index.html (+1.46s)
[09:23:58.502]   ├─ /blog/community-awards-22/index.html (+1.49s)
[09:23:58.530]   ├─ /blog/community-day/index.html (+1.51s)
[09:23:58.557]   ├─ /blog/contributor-awards-4/index.html (+1.54s)
[09:23:58.591]   ├─ /blog/demo-day-2021-09/index.html (+1.58s)
[09:23:58.621]   ├─ /blog/docs-hacktoberfest/index.html (+1.61s)
[09:23:58.654]   ├─ /blog/experimental-server-side-rendering/index.html (+1.64s)
[09:23:58.678]   ├─ /blog/experimental-static-build/index.html (+1.66s)
[09:23:58.708]   ├─ /blog/hybrid-rendering/index.html (+1.69s)
[09:23:58.725] 
[09:23:58.725] [@astrojs/image] "alt" text was not provided for an <Image> or <Picture> component.
[09:23:58.725] 
[09:23:58.725] A future release of @astrojs/image may throw a build error when "alt" text is missing.
[09:23:58.725] 
[09:23:58.726] The "alt" attribute holds a text description of the image, which isn't mandatory but is incredibly useful for accessibility. Set to an empty string (alt="") if the image is not a key part of the content (it's decoration or a tracking pixel).
[09:23:58.726] 
[09:23:58.749]   ├─ /blog/images/index.html (+1.73s)
[09:23:58.779]   ├─ /blog/introducing-astro/index.html (+1.76s)
[09:23:58.809]   ├─ /blog/introducing-content-collections/index.html (+1.79s)
[09:23:58.833]   ├─ /blog/launch-week/index.html (+1.82s)
[09:23:58.864]   ├─ /blog/netlify-astro-hosting-sponsorship/index.html (+1.85s)
[09:23:58.891]   ├─ /blog/netlify-edge-functions/index.html (+1.87s)
[09:23:59.088]   ├─ /blog/storyblok-partnership/index.html (+2.07s)
[09:23:59.116]   ├─ /blog/the-astro-technology-company/index.html (+2.10s)
[09:23:59.150]   ├─ /blog/themes-and-integrations/index.html (+2.13s)
[09:23:59.179]   ├─ /blog/themes-catalog-updates/index.html (+2.16s)
[09:23:59.210]   ├─ /blog/viteconf-2022/index.html (+2.19s)
[09:23:59.240]   └─ /blog/welcome-world/index.html (+2.22s)
[09:23:59.241] ▶ src/pages/blog/[...page].astro
[09:23:59.272]   ├─ /blog/index.html (+32ms)
[09:23:59.302]   ├─ /blog/2/index.html (+62ms)
[09:23:59.332]   ├─ /blog/3/index.html (+91ms)
[09:23:59.363]   └─ /blog/4/index.html (+122ms)
[09:23:59.363] ▶ src/pages/404.astro
[09:23:59.382]   └─ /404.html (+19ms)
[09:23:59.382] λ src/pages/api/showcase.json.ts
[09:23:59.401]   └─ /api/showcase.json (+19ms)
[09:23:59.402] ▶ src/pages/on/[platform].astro
[09:23:59.404]   ├─ /on/github/index.html (+2ms)
[09:23:59.405]   ├─ /on/discord/index.html (+3ms)
[09:23:59.406]   ├─ /on/twitter/index.html (+4ms)
[09:23:59.407]   └─ /on/mastodon/index.html (+5ms)
[09:23:59.407] ▶ src/pages/[slug].astro
[09:23:59.430]   ├─ /privacy/index.html (+23ms)
[09:23:59.456]   └─ /terms/index.html (+49ms)
[09:23:59.456] Completed in 7.98s.
[09:23:59.456] 
[09:23:59.540] 
[09:23:59.540]  finalizing server assets 
[09:23:59.540] 
[09:23:59.540] 01:23:59 AM [build] Rearranging server assets...
[09:23:59.585] �[32m@astrojs/sitemap:�[0m `sitemap-index.xml` is created.
[09:23:59.585] 
[09:23:59.587] 01:23:59 AM [build] Server built in 38.48s
[09:23:59.587] 01:23:59 AM [build] Complete!
[09:24:00.062] Build Completed in /vercel/output [1m]
[09:24:00.411] Deploying outputs...
[09:24:18.011] Deployment completed
[09:24:29.303] Uploading build cache [57.93 MB]...
[09:24:30.647] Build cache uploaded: 1.344s

@tony-sull
can anyone tell me why . i clone themes to rename it toolkits,but this page dont render using npm run build, it works npm run dev

screenshot-20230721-164222

@wanghaisheng It looks like you’re trying to use the designs for astro.build for your own site? This repo is not licensed for re-use and the designs are copyright the Astro project and contributors, so I’d please as you don’t use it for your own project.

I know this I would delete this one, can you explain why this npm run dev and npm run build render differently@delucis

hey @wanghaisheng! I'm going to close this issue, since it has been open for quite a while.