-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Description
Astro Info
Astro v5.14.6
Node v20.19.1
System Linux (x64)
Package Manager unknown
Output static
Adapter none
Integrations @astrojs/mdx
@astrojs/sitemap
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
Since version 5.13.10, Astro.site is undefined in getStaticPaths().
This was last working in version 5.13.9.
This looks like the most relevant change in 5.13.10: https://github.com/withastro/astro/pull/14405/files#diff-6b0c74afa525663c451fc84841ec2040e7125f74e732da4ed7584b84896a759dL52
The linked repro is the blog example with pages/blog/[...slug].tsx] modified to demonstrate the problem. The example will run npm run build automatically.
If you run npm install [email protected] && npm run build the problem goes away.
What's the expected result?
It should work as it previously did, where Astro.site contained the URL configured in astro.config.mjs in a URL object.
Note: It’s possible that things other than getStaticPaths() are affected, that’s just where I noticed the problem.
Link to Minimal Reproducible Example
Participation
- I am willing to submit a pull request for this issue.