diff options
author | 2023-07-19 09:31:07 -0400 | |
---|---|---|
committer | 2023-07-19 09:31:07 -0400 | |
commit | ec745d689abc79d27bc24477589533481f077ddb (patch) | |
tree | 1a9c482677e369112681da60361d5eafd221fd1d /packages/integrations/netlify | |
parent | 659b2b034cb2f0c3dc72ed957d41a123cf0f43db (diff) | |
download | astro-ec745d689abc79d27bc24477589533481f077ddb.tar.gz astro-ec745d689abc79d27bc24477589533481f077ddb.tar.zst astro-ec745d689abc79d27bc24477589533481f077ddb.zip |
Remove experimental flag for redirects config (#7686)
* Remove experimental flag for redirects config
* Remove experimental from tests
* Remove experimental CLI flag
* Add changeset
* Removing redirect test that is no longer relevant
* Remove experimental label"
* Update .changeset/dry-beers-grow.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update .changeset/dry-beers-grow.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Remove old function
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Diffstat (limited to 'packages/integrations/netlify')
-rw-r--r-- | packages/integrations/netlify/README.md | 5 | ||||
-rw-r--r-- | packages/integrations/netlify/test/functions/redirects.test.js | 3 | ||||
-rw-r--r-- | packages/integrations/netlify/test/static/redirects.test.js | 3 |
3 files changed, 1 insertions, 10 deletions
diff --git a/packages/integrations/netlify/README.md b/packages/integrations/netlify/README.md index d814fccd1..eb1ae8878 100644 --- a/packages/integrations/netlify/README.md +++ b/packages/integrations/netlify/README.md @@ -142,7 +142,7 @@ export default defineConfig({ ### Static sites -For static sites you usually don't need an adapter. However, if you use `redirects` configuration (experimental) in your Astro config, the Netlify adapter can be used to translate this to the proper `_redirects` format. +For static sites you usually don't need an adapter. However, if you use `redirects` configuration in your Astro config, the Netlify adapter can be used to translate this to the proper `_redirects` format. ```js import { defineConfig } from 'astro/config'; @@ -154,9 +154,6 @@ export default defineConfig({ redirects: { '/blog/old-post': '/blog/new-post', }, - experimental: { - redirects: true, - }, }); ``` diff --git a/packages/integrations/netlify/test/functions/redirects.test.js b/packages/integrations/netlify/test/functions/redirects.test.js index 566b88f4d..39c496cdf 100644 --- a/packages/integrations/netlify/test/functions/redirects.test.js +++ b/packages/integrations/netlify/test/functions/redirects.test.js @@ -18,9 +18,6 @@ describe('SSG - Redirects', () => { redirects: { '/other': '/', }, - experimental: { - redirects: true, - }, }); await fixture.build(); }); diff --git a/packages/integrations/netlify/test/static/redirects.test.js b/packages/integrations/netlify/test/static/redirects.test.js index d2f87d4f6..ae3ff1eb8 100644 --- a/packages/integrations/netlify/test/static/redirects.test.js +++ b/packages/integrations/netlify/test/static/redirects.test.js @@ -11,9 +11,6 @@ describe('SSG - Redirects', () => { root: new URL('./fixtures/redirects/', import.meta.url).toString(), output: 'static', adapter: netlifyStatic(), - experimental: { - redirects: true, - }, site: `http://example.com`, integrations: [testIntegration()], redirects: { |