#When static routes are generated during build, does it inject values to html?
3 messages · Page 1 of 1 (latest)
Hi @delicate plume. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
Astro uses file-based routing to generate your build URLs based on the file layout of your project src/pages/ directory. This includes .astro, .md, or .mdx files within the src/pages/ directory which automatically become pages on your website. Each page’s route corresponds to its path and filename within the src/pages/ directory. When you add a file to the src/pages/ directory, a new route is automatically created for you. However, it doesn't inject values into HTML during this process. It simply creates a static HTML page from your markdown content.
The error you're seeing might be due to some other issue. It's hard to diagnose without more context. If you're still having trouble, you might want to create a GitHub issue (https://github.com/withastro/docs/issues/new) to get help from the Astro team.
Sources:
- Astro Routing Guide (https://docs.astro.build/en/guides/routing/#_top)
- Astro Markdown in Astro Guide (https://docs.astro.build/en/guides/markdown-content/#individual-markdown-pages)