-
#10179
6343f6a438d790fa16a0dd268f4a51def4fa0f33
Thanks @ematipico! - Revert withastro#9846The feature to customize the file name of the sitemap was reverted due to some internal issues with one of the dependencies. With an non-deterministic behaviour, the sitemap file was sometime emitted with incorrect syntax.
-
#9975
ec7d2ebbd96b8c2dfdadaf076bbf7953007536ed
Thanks @moose96! - Fixes URL generation for routes that rest parameters and start with/
-
#9846
9b78c992750cdb99c40a89a00ea2a0d1c00877d7
Thanks @ktym4a! - Adds a new configuration optionprefix
that allows you to change the defaultsitemap-*.xml
file name.By default, running
astro build
creates bothsitemap-index.xml
andsitemap-0.xml
in your output directory.To change the names of these files (e.g. to
astrosite-index.xml
andastrosite-0.xml
), set theprefix
option in yoursitemap
integration configuration:import { defineConfig } from 'astro/config'; import sitemap from '@astrojs/sitemap'; export default defineConfig({ site: 'https://example.com', integrations: [ sitemap({ prefix: 'astrosite-', }), ], });
This option is useful when Google Search Console is unable to fetch your default sitemap files, but can read renamed files.
- #9704
b325fada567892b63ecae87c1ff845c8514457ba
Thanks @andremralves! - Fixes generated URLs when using abase
with a SSR adapter
- #9479
1baf0b0d3cbd0564954c2366a7278794fad6726e
Thanks @sarah11918! - Updates README
- #8762
35cd810f0
Thanks @evadecker! - Upgrades Zod to 3.22.4
- #8824
10b103820
Thanks @silent1mezzo! - Display output directory in the sitemap build result
- #8737
6f60da805
Thanks @ematipico! - Add provenance statement when publishing the library from CI
-
#8188
d0679a666
Thanks @ematipico! - Remove support for Node 16. The lowest supported version by Astro and all integrations is now v18.14.1. As a reminder, Node 16 will be deprecated on the 11th September 2023. -
#8179
6011d52d3
Thanks @matthewp! - Astro 3.0 Release Candidate
1eae2e3f7
Thanks @Princesseuh! - Remove support for Node 16. The lowest supported version by Astro and all integrations is now v18.14.1. As a reminder, Node 16 will be deprecated on the 11th September 2023.
- #7722
77ffcc8f8
Thanks @natemoo-re! - Ensure nested 404 and 500 pages are always excluded
- #7656
dd931a780
Thanks @natemoo-re! - Sitemap only includespage
routes (generated by.astro
files) rather than all routes (pages, endpoints, or redirects). This behavior matches our existing documentation, but is a breaking change nonetheless.
- #7656
dd931a780
Thanks @natemoo-re! - Ensure trailing slash is only added to page routes
- #7655
c258492b7
Thanks @natemoo-re! - Ensure sitemap only excludes numerical pages matching/404
and/500
exactly
- #7263
dff0d0dda
Thanks @andremralves! - Fix sitemap does not filter pages
- #7028
6ca3b5a9e
Thanks @alexanderniebuhr! - exported enum type to support typescript > 5.0
- #7029
1b90a7a5d
Thanks @TheOtterlord! - Fix generation for static dynamic routes
- #6534
ad907196c
Thanks @atilafassina! - Adds support to SSR routes to sitemap generation.
- #6658
1ec1df126
Thanks @andremralves! - Fix sitemap generation with a base path
- #6494
a13e9d7e3
Thanks @Yan-Thomas! - Consistency improvements to several package descriptions
- #6213
afbbc4d5b
Thanks @Princesseuh! - Updated compilation settings to disable downlevelling for Node 14
- #6262
4fcefa34f
Thanks @vic1707! - updateChangeFreq
to support typescript configurations with string literal or predefined value.
-
04ad44563
- > Astro v1.0 is out! Read the official announcement post.No breaking changes. This package is now officially stable and compatible with
[email protected]
!
-
#4015
6fd161d76
Thanks @matthewp! - Newoutput
configuration optionThis change introduces a new "output target" configuration option (
output
). Setting the output target lets you decide the format of your final build, either:"static"
(default): A static site. Your final build will be a collection of static assets (HTML, CSS, JS) that you can deploy to any static site host."server"
: A dynamic server application. Your final build will be an application that will run in a hosted server environment, generating HTML dynamically for different requests.
If
output
is omitted from your config, the default value"static"
will be used.When using the
"server"
output target, you must also include a runtime adapter via theadapter
configuration. An adapter will adapt your final build to run on the deployed platform of your choice (Netlify, Vercel, Node.js, Deno, etc).To migrate: No action is required for most users. If you currently define an
adapter
, you will need to also addoutput: 'server'
to your config file to make it explicit that you are building a server. Here is an example of what that change would look like for someone deploying to Netlify:import { defineConfig } from 'astro/config'; import netlify from '@astrojs/netlify/functions'; export default defineConfig({ adapter: netlify(), + output: 'server', });
- #3978
b37d7078a
Thanks @Chrissdroid! - Update README to reflect@astrojs/[email protected]
changes
- #4004
ef9c4152b
Thanks @sarah11918! - [READMEs] removed "experimental" from astro add instructions
- #3854
b012ee55
Thanks @bholmesdev! - [astro add] Support adapters and third party packages
- #3723
52f75369
Thanks @alextim! - fix: ifserialize
function returnsundefined
for the passed entry, such entry will be excluded from sitemap
- #3689
3f8ee70e
Thanks @bholmesdev! - Add warning log for sitemap + SSR adapter, with suggestion to use customPages configuration option
-
#3579
1031c06f
Thanks @alextim! - # Key features- Split up your large sitemap into multiple sitemaps by custom limit.
- Ability to add sitemap specific attributes such as
lastmod
etc. - Final output customization via JS function.
- Localization support.
- Reliability: all config options are validated.
The integration always generates at least two files instead of one:
sitemap-index.xml
- index file;sitemap-{i}.xml
- actual sitemap.
- #3553
c601ce59
Thanks @caioferrarezi! - Prevent sitemap URLs with trimmed paths
e425f896
Thanks @FredKSchott! - Update config options to respect RFC0019
e425f896
Thanks @FredKSchott! - Add new sitemap configuration options:filter
: filter pages to include in your sitemapcanonicalURL
: override your astro.configsite
with a custom base URL
- #2885
6b004363
Thanks @bholmesdev! - Add README across Astro built-in integrations
- #2847
3b621f7a
Thanks @tony-sull! - Adds keywords to the official integrations to support discoverability on Astro's Integrations site
- #2847
3b621f7a
Thanks @tony-sull! - Adds keywords to the official integrations to support discoverability on Astro's Integrations site