mirror of
https://github.com/Egonex-AI/Understand-Anything.git
synced 2026-06-22 10:58:03 +08:00
5649d5a515
The homepage Hero component referenced `/images/hero.png`, but the actual asset shipped at `homepage/public/images/hero.jpg`. As a result, https://understand-anything.com/images/hero.png returned HTTP 404 and the hero background failed to load. 修复:把 homepage/src/components/Hero.astro:7 的 /images/hero.png 改成 /images/hero.jpg,与仓库中实际存在的 homepage/public/images/hero.jpg 对齐,消除站点首页的 404。 Repro: curl -sI https://understand-anything.com/images/hero.png # HTTP/2 404 Root cause: homepage/src/components/Hero.astro:7 <img src="/images/hero.png" ... /> # file does not exist homepage/public/images/ hero.jpg (182179 bytes) # actual file shipped Fix: Single-line: .png -> .jpg in Hero.astro:7. Asset already published, no binary changes needed. After Pages rebuild, /images/hero.jpg resolves with HTTP 200.
5649d5a515
·
2026-04-24 11:03:45 +00:00
History
Astro Starter Kit: Minimal
pnpm create astro@latest -- --template minimal
🧑🚀 Seasoned astronaut? Delete this file. Have fun!
🚀 Project Structure
Inside of your Astro project, you'll see the following folders and files:
/
├── public/
├── src/
│ └── pages/
│ └── index.astro
└── package.json
Astro looks for .astro or .md files in the src/pages/ directory. Each page is exposed as a route based on its file name.
There's nothing special about src/components/, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
Any static assets, like images, can be placed in the public/ directory.
🧞 Commands
All commands are run from the root of the project, from a terminal:
| Command | Action |
|---|---|
pnpm install |
Installs dependencies |
pnpm dev |
Starts local dev server at localhost:4321 |
pnpm build |
Build your production site to ./dist/ |
pnpm preview |
Preview your build locally, before deploying |
pnpm astro ... |
Run CLI commands like astro add, astro check |
pnpm astro -- --help |
Get help using the Astro CLI |
👀 Want to learn more?
Feel free to check our documentation or jump into our Discord server.