-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/shiki-defaultcolor
- Loading branch information
Showing
72 changed files
with
4,402 additions
and
515 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,113 +1,2 @@ | ||
[[headers]] | ||
for = "/_astro/*" | ||
[headers.values] | ||
Cache-Control = "public, max-age=604800, immutable" | ||
|
||
[build] | ||
command = "NODE_OPTIONS=--max_old_space_size=4096 pnpm netlify:build" | ||
ignore = "git diff --quiet $COMMIT_REF $CACHED_COMMIT_REF -- /" | ||
|
||
[[redirects]] | ||
from = "/reference/renderer-reference" | ||
to = "/en/reference/integrations-reference" | ||
|
||
[[redirects]] | ||
from = "/en/reference/renderer-reference" | ||
to = "/en/reference/integrations-reference" | ||
|
||
[[redirects]] | ||
from = "/en/core-concepts/component-hydration" | ||
to = "/en/concepts/islands" | ||
|
||
[[redirects]] | ||
from = "/core-concepts/component-hydration" | ||
to = "/en/concepts/islands" | ||
|
||
[[redirects]] | ||
from = "/en/getting-started/quick-start" | ||
to = "/en/install/auto" | ||
|
||
[[redirects]] | ||
from = "/docs/*" | ||
to = "/:splat" | ||
|
||
[[redirects]] | ||
from = "/:lang/docs/*" | ||
to = "/:lang/:splat" | ||
|
||
[[redirects]] | ||
from = "/:lang/core-concepts/partial-hydration" | ||
to = "/:lang/concepts/islands" | ||
|
||
[[redirects]] | ||
from = "/core-concepts/collections" | ||
to = "/en/guides/content-collections" | ||
|
||
[[redirects]] | ||
from = "/:lang/core-concepts/collections" | ||
to = "/:lang/guides/content-collections" | ||
|
||
[[redirects]] | ||
from = "/comparing-astro-vs-other-tools" | ||
to = "/en/guides/migrate-to-astro" | ||
|
||
[[redirects]] | ||
from = "/:lang/comparing-astro-vs-other-tools" | ||
to = "/:lang/guides/migrate-to-astro" | ||
|
||
[[redirects]] | ||
from = "/lighthouse/*" | ||
to = "/en/guides/migrate-to-astro" | ||
|
||
[[redirects]] | ||
from = "/:lang/guides/publish-to-npm" | ||
to = "/:lang/reference/publish-to-npm" | ||
|
||
[[redirects]] | ||
from = "/en/guides/debugging" | ||
to = "/en/guides/troubleshooting" | ||
|
||
[[redirects]] | ||
from = "/en/quick-start" | ||
to = "/en/installation" | ||
|
||
[[redirects]] | ||
from = "/:lang/concepts/mpa-vs-spa" | ||
to = "/:lang/concepts/why-astro" | ||
|
||
[[redirects]] | ||
from = "/:lang/deploy/:service" | ||
to = "/:lang/guides/deploy/:service" | ||
|
||
[[redirects]] | ||
from = "/:lang/guides/deploy/layer-zero" | ||
to = "/:lang/guides/deploy/edgio" | ||
|
||
[[redirects]] | ||
from = "/:lang/guides/client-side-routing" | ||
to = "/:lang/guides/view-transitions" | ||
|
||
[[redirects]] | ||
from = "/:lang/guides/assets" | ||
to = "/:lang/guides/images" | ||
|
||
[[redirects]] | ||
from = "/:lang/guides/integrations-guide/image" | ||
to = "/:lang/guides/images" | ||
|
||
[[redirects]] | ||
from = "/:lang/migration/0.21.0" | ||
to = "/:lang/guides/upgrade-to/v1" | ||
|
||
[[redirects]] | ||
from = "/:lang/migrate" | ||
to = "/:lang/guides/upgrade-to/v1" | ||
|
||
[[redirects]] | ||
from = "/" | ||
to = "/en/getting-started" | ||
|
||
[[redirects]] | ||
from = "/:lang/*" | ||
to = "/:lang/404/" | ||
status = 404 | ||
command = "NODE_OPTIONS=--max_old_space_size=4096 pnpm netlify:build" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/_astro/* | ||
cache-control: max-age=31536000 | ||
cache-control: immutable | ||
cache-control: public |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Moved content | ||
# When moving a page, usually you’ll want to add a redirect to the bottom of this block. | ||
/:lang/install/auto /:lang/install-and-setup/ | ||
/:lang/install/manual /:lang/install-and-setup/ | ||
/:lang/core-concepts/project-structure /:lang/basics/project-structure/ | ||
/:lang/core-concepts/astro-components /:lang/basics/astro-components/ | ||
/:lang/core-concepts/astro-pages /:lang/basics/astro-pages/ | ||
/:lang/core-concepts/layouts /:lang/basics/layouts/ | ||
/:lang/core-concepts/astro-syntax /:lang/basics/astro-syntax/ | ||
/:lang/core-concepts/rendering-modes /:lang/basics/rendering-modes/ | ||
/:lang/core-concepts/routing /:lang/guides/routing/ | ||
/:lang/core-concepts/endpoints /:lang/guides/endpoints/ | ||
/:lang/core-concepts/framework-components /:lang/guides/framework-components/ | ||
/:lang/core-concepts/sharing-state /:lang/recipes/sharing-state-islands/ | ||
/:lang/reference/dev-overlay-plugin-reference /:lang/reference/dev-toolbar-app-reference/ | ||
/:lang/core-concepts/partial-hydration /:lang/concepts/islands/ | ||
/:lang/guides/publish-to-npm /:lang/reference/publish-to-npm/ | ||
/:lang/concepts/mpa-vs-spa /:lang/concepts/why-astro/ | ||
/:lang/deploy/:service /:lang/guides/deploy/:service | ||
/:lang/guides/deploy/layer-zero /:lang/guides/deploy/edgio/ | ||
/:lang/guides/client-side-routing /:lang/guides/view-transitions/ | ||
/:lang/guides/assets /:lang/guides/images/ | ||
/en/guides/aliases /en/guides/imports/#aliases | ||
/:lang/guides/aliases /:lang/guides/imports/ | ||
/:lang/guides/integrations-guide/image /:lang/guides/images/ | ||
/:lang/migration/0.21.0 /:lang/guides/upgrade-to/v1/ | ||
/:lang/migrate /:lang/guides/upgrade-to/v1/ | ||
/:lang/recipes/studio /:lang/guides/astro-db/ | ||
/:lang/recipes /:lang/community-resources/content/ | ||
|
||
# Very old docs site redirects | ||
# Once upon a time these URLs existed, so we try to keep them meaning something. | ||
/reference/renderer-reference /en/reference/integrations-reference/ | ||
/en/reference/renderer-reference /en/reference/integrations-reference/ | ||
/en/core-concepts/component-hydration /en/concepts/islands/ | ||
/core-concepts/component-hydration /en/concepts/islands/ | ||
/core-concepts/collections /en/guides/content-collections/ | ||
/:lang/core-concepts/collections /:lang/guides/content-collections/ | ||
/en/getting-started/quick-start /en/install-and-setup/ | ||
/docs/* /:splat | ||
/:lang/docs/* /:lang/:splat | ||
/comparing-astro-vs-other-tools /en/guides/migrate-to-astro/ | ||
/:lang/comparing-astro-vs-other-tools /:lang/guides/migrate-to-astro/ | ||
/lighthouse/* /en/guides/migrate-to-astro/ | ||
/en/guides/debugging /en/guides/troubleshooting/ | ||
/en/quick-started /en/installation/ | ||
|
||
# Redirect root to English homepage | ||
/ /en/getting-started/ | ||
|
||
# Translated 404s | ||
/:lang/* /:lang/404/ 404 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.