-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
'astro': minor | ||
--- | ||
|
||
Experimental redirects support | ||
|
||
This change adds support for the redirects RFC, currently in stage 3: https://github.com/withastro/roadmap/pull/587 | ||
|
||
Now you can specify redirects in your Astro config: | ||
|
||
```js | ||
import { defineConfig } from 'astro/config'; | ||
|
||
export defineConfig({ | ||
redirects: { | ||
'/blog/old-post': '/blog/new-post' | ||
} | ||
}); | ||
``` | ||
|
||
You can also specify spread routes using the same syntax as in file-based routing: | ||
|
||
```js | ||
import { defineConfig } from 'astro/config'; | ||
|
||
export defineConfig({ | ||
redirects: { | ||
'/blog/[...slug]': '/articles/[...slug]' | ||
} | ||
}); | ||
``` | ||
|
||
By default Astro will build HTML files that contain the `<meta http-equiv="refresh">` tag. Adapters can also support redirect routes and create configuration for real HTTP-level redirects in production. |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
'@astrojs/cloudflare': minor | ||
--- | ||
|
||
Support for experimental redirects | ||
|
||
This adds support for the redirects RFC in the Cloudflare adapter. No changes are necessary, simply use configured redirects and the adapter will update your `_redirects` file. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'astro': minor | ||
--- | ||
|
||
Remove experimental flag for custom client directives |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
'@astrojs/vercel': minor | ||
--- | ||
|
||
Support for experimental redirects | ||
|
||
This adds support for the redirects RFC in the Vercel adapter. No changes are necessary, simply use configured redirects and the adapter will output the vercel.json file with the configuration values. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'astro': patch | ||
--- | ||
|
||
Fix HTML component type causing an error when imported in the editor |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'astro': patch | ||
--- | ||
|
||
Fix cookies not being set by middleware |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'astro': patch | ||
--- | ||
|
||
Fix nested astro-island hydration race condition |
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'astro': minor | ||
--- | ||
|
||
Update base `tsconfig.json` template with `allowJs: true` to provide a better relaxed experience for users unfamilliar with TypeScript. `allowJs` is still set to `false` (its default value) when using the `strictest` preset. |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
'astro': minor | ||
--- | ||
|
||
The Inline Stylesheets RFC is now stable! | ||
|
||
You can now control how Astro bundles your css with a configuration change: | ||
|
||
```ts | ||
export default defineConfig({ | ||
... | ||
build: { | ||
inlineStylesheets: "auto" | ||
} | ||
... | ||
}) | ||
``` | ||
|
||
The options: | ||
- `inlineStylesheets: "never"`: This is the behavior you are familiar with. Every stylesheet is external, and added to the page via a `<link>` tag. Default. | ||
- `inlineStylesheets: "auto"`: Small stylesheets are inlined into `<style>` tags and inserted into `<head>`, while larger ones remain external. | ||
- `inlineStylesheets: "always"`: Every style required by the page is inlined. | ||
|
||
As always, css files in the `public` folder are not affected. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'astro': patch | ||
--- | ||
|
||
remove the white space after the doctype according to the property compressHTML |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
'@astrojs/netlify': minor | ||
--- | ||
|
||
Support for experimental redirects | ||
|
||
This adds support for the redirects RFC in the Netlify adapter, including a new `@astrojs/netlify/static` adapter for static sites. | ||
|
||
No changes are necessary when using SSR. Simply use configured redirects and the adapter will update your `_redirects` file. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
'astro': minor | ||
'@astrojs/image': minor | ||
'@astrojs/cloudflare': patch | ||
'@astrojs/netlify': patch | ||
'@astrojs/node': patch | ||
'@astrojs/vercel': patch | ||
--- | ||
|
||
Unflags support for `output: 'hybrid'` mode, which enables pre-rendering by default. The additional `experimental.hybridOutput` flag can be safely removed from your configuration. |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'astro': minor | ||
--- | ||
|
||
Remove experimental flag for the middleware |