Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v5 beta - @astrojs/sitemap excluded from final static output with Vercel adapter #445

Open
1 task
dotnize opened this issue Nov 21, 2024 · 0 comments
Open
1 task
Labels
- P4: important Violate documented behavior or significantly improves performance (priority) needs triage Issue needs to be triaged pkg: vercel Related to Vercel adapter (scope)

Comments

@dotnize
Copy link

dotnize commented Nov 21, 2024

Astro Info

Astro                    v5.0.0-beta.8
Node                     v22.11.0
System                   Linux (x64)
Package Manager          pnpm
Output                   static
Adapter                  @astrojs/vercel
Integrations             @astrojs/mdx
                         @astrojs/sitemap

If this issue only occurs in one browser, which browser is a problem?

No response

Describe the Bug

"@astrojs/sitemap": "^3.2.1",
"@astrojs/vercel": "^8.0.0-beta.4",
"astro": "^5.0.0-beta.8",

output is static

Using the versions above, the sitemap-index.xml and sitemap-0.xml files are created in /dist instead of .vercel/output/static, excluding them from the final vercel deployment.

image

What's the expected result?

astro-v4 branch in the repro

"@astrojs/sitemap": "^3.2.1",
"@astrojs/vercel": "^7.8.2",
"astro": "^4.16.13",

output is hybrid

No /dist folder is created at all after building, and the sitemap is properly generated in .vercel/output/static.

[build] Rearranging server assets...
[@astrojs/sitemap] `sitemap-index.xml` created at `.vercel/output/static`

Link to Minimal Reproducible Example

https://github.com/dotnize/astro-sitemap-vercel-static

Participation

  • I am willing to submit a pull request for this issue.
@github-actions github-actions bot added the needs triage Issue needs to be triaged label Nov 21, 2024
@ematipico ematipico transferred this issue from withastro/astro Nov 21, 2024
@ematipico ematipico added - P4: important Violate documented behavior or significantly improves performance (priority) pkg: vercel Related to Vercel adapter (scope) labels Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- P4: important Violate documented behavior or significantly improves performance (priority) needs triage Issue needs to be triaged pkg: vercel Related to Vercel adapter (scope)
Projects
None yet
Development

No branches or pull requests

2 participants