Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to next, this PR will be updated.
next
is currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, runchangeset pre exit
onnext
.Releases
[email protected]
Major Changes
#12268
4e9a3ac
Thanks @ematipico! - The commandastro add vercel
now updates the configuration file differently, and adds@astrojs/vercel
as module to import.This is a breaking change because it requires the version
8.*
of@astrojs/vercel
.#12231
90ae100
Thanks @bluwy! - Updates the automaticcharset=utf-8
behavior for Markdown pages, where instead of responding withcharset=utf-8
in theContent-Type
header, Astro will now automatically add the<meta charset="utf-8">
tag instead.This behaviour only applies to Markdown pages (
.md
or similar Markdown files located withinsrc/pages/
) that do not use Astro's speciallayout
frontmatter property. It matches the rendering behaviour of other non-content pages, and retains the minimal boilerplate needed to write with non-ASCII characters when adding individual Markdown pages to your site.If your Markdown pages use the
layout
frontmatter property, then HTML encoding will be handled by the designated layout component instead, and the<meta charset="utf-8">
tag will not be added to your page by default.If you require
charset=utf-8
to render your page correctly, make sure that your layout components contain the<meta charset="utf-8">
tag. You may need to add this if you have not already done so.Minor Changes
#12243
eb41d13
Thanks @florian-lefebvre! - ImprovesdefineConfig
type safety. TypeScript will now error if a group of related configuration options do not have consistent types. For example, you will now see an error if your language set fori18n.defaultLocale
is not one of the supported locales specified ini18n.locales
.#12150
93351bc
Thanks @bluwy! - Adds support for passing values other than"production"
or"development"
to the--mode
flag (e.g."staging"
,"testing"
, or any custom value) to change the value ofimport.meta.env.MODE
or the loaded.env
file. This allows you take advantage of Vite's mode feature.Also adds a new
--devOutput
flag forastro build
that will output a development-based build.Note that changing the
mode
does not change the kind of code transform handled by Vite and Astro:astro dev
, Astro will transform code with debug information.astro build
, Astro will transform code with the most optimized output and removes debug information.astro build --devOutput
(new flag), Astro will transform code with debug information like inastro dev
.This enables various usecases like:
The different modes can be used to load different
.env
files, e.g..env.staging
or.env.production
, which can be customized for each environment, for example with differentAPI_URL
environment variable values.Patch Changes
#12302
7196c24
Thanks @ematipico! - Fixes an issue where the origin check middleware run for prendered pages#12341
c1786d6
Thanks @ematipico! - Fixes and issue whereAstro.currentLocale
always returned the default locale when consumed inside a server island.#12270
25192a0
Thanks @ematipico! - Fixes a bug where the params weren't correctly computed when rendering URLs with non-English characters@astrojs/[email protected]
Major Changes
#12231
90ae100
Thanks @bluwy! - Handles the breaking change in Astro where content pages (including.mdx
pages located withinsrc/pages/
) no longer respond withcharset=utf-8
in theContent-Type
header.For MDX pages without layouts,
@astrojs/mdx
will automatically add the<meta charset="utf-8">
tag to the page by default. This reduces the boilerplate needed to write with non-ASCII characters. If your MDX pages have a layout, the layout component should include the<meta charset="utf-8">
tag.If you require
charset=utf-8
to render your page correctly, make sure that your layout components have the<meta charset="utf-8">
tag added.@astrojs/[email protected]
Patch Changes
81b0bf5
Thanks @bluwy! - New release to include changes from 4.5.2