#When static routes are generated during build, does it inject values to html?

3 messages · Page 1 of 1 (latest)

delicate plume
#

I'm currently seeing this error:

Which is unexpected since my original content in .md files are like these:

The above crontab setting is for the server to run the following:
- LOAD_ME runs at 4am and looks for specific filenames:
    - Project file: {YYYYMMDD}_ME.xlsx (i.e 20240609_ME.xlsx)
sour rivetBOT
#

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:


Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: