0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00
The web framework for content-driven websites. ️ Star to support our work!
Find a file
Luiz Ferraz fd17f4a40b
Implement priority overrides for injected routes and redirects (#9439)
* Implement priority overrides for injected routes and redirects

* Fix ordering for route specificity

* Don't mix rules on tests

* Detailed collision detection

* Add changeset

* Remove TODO

* Add comments to clarify default values

* Update terminology

* Revert unrelated changes

* WIP

* Refactor

* Fix typo and typing

* chore: default to legacy

* chore: use experimental flag instead of option

* fix: do not throw an error on collisions

* chore: fix regression

* chore: use `continue` instead of `return`

* chore: fix tests but one

* chore: Update test

* chore: Change remaining new error to warning

* chore: Test collision warnings

* docs: Update docs of new config

* docs: Improve changesets

* chore: rename experimental flag

* chore: update changeset and docs

* Sarah editing pass

* nit: Align Markdown table

* defined definitions!

Co-authored-by: Luiz Ferraz <luiz@lferraz.com>

* added logging info to docs for experimental flag

* Yan final boss review

Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>

* chore: Update flag name in tests

* chore: Update flag name in tests

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
2024-01-17 13:28:18 +00:00
.changeset Implement priority overrides for injected routes and redirects (#9439) 2024-01-17 13:28:18 +00:00
.devcontainer Remove examples/vite-plugin-pwa (#9270) 2023-12-01 14:54:11 -06:00
.github Update check-merge action (#9682) 2024-01-12 11:38:07 -06:00
.gitpod chore: removed adapters cleanup (#8726) 2023-10-10 19:36:35 +05:30
.vscode
benchmark Remove deprecated features from Astro 3.0 (#9168) 2023-11-28 00:44:20 +08:00
examples Adapter enhancements (#9661) 2024-01-17 13:10:43 +00:00
packages Implement priority overrides for injected routes and redirects (#9439) 2024-01-17 13:28:18 +00:00
scripts Use node:test and node:assert/strict (#9649) 2024-01-12 15:53:00 +08:00
.editorconfig
.eslintignore feat: remove webapi in favor of a smaller polyfill (#7840) 2023-08-08 11:01:45 +01:00
.eslintrc.cjs [docs] fix some error message syntax and add some lint rules to help (#9651) 2024-01-09 16:56:28 -04:00
.git-blame-ignore-revs
.gitignore test: add setup for Vercel / Netlify tests (#7716) 2023-07-21 21:24:36 +02:00
.gitpod.yml chore: removed adapters cleanup (#8726) 2023-10-10 19:36:35 +05:30
.npmrc Handle compiler breaking change (#5803) 2023-01-12 22:46:56 +08:00
.nvmrc Remove support for Node 16 (#7780) 2023-08-08 11:01:33 +01:00
.prettierignore Update Prettier (#8420) 2023-09-06 10:23:44 -05:00
CONTRIBUTING.md Use node:test and node:assert/strict (#9649) 2024-01-12 15:53:00 +08:00
LICENSE Implement new a11y audits for the Dev Toolbar app (#9170) 2023-12-04 11:16:27 -06:00
package.json Chore: fix noisy peerDependency warnings (it's fine) (#9257) 2023-11-30 16:27:20 -06:00
pnpm-lock.yaml Allow remark plugins to affect getImage call for .md files (#9566) 2024-01-17 13:13:31 +00:00
pnpm-workspace.yaml Upgrade turbo (#6911) 2023-04-27 11:39:15 +08:00
prettier.config.js Update Prettier (#8420) 2023-09-06 10:23:44 -05:00
README.md Compress banner image (#9493) 2023-12-22 16:48:12 +00:00
SECURITY.md [ci] format 2022-08-08 17:12:48 +00:00
SECURITY_CONTACTS Changes required for a Passing grade from OpenSSF Best Practices (#3718) 2022-08-08 12:11:00 -05:00
STYLE_GUIDE.md
tsconfig.base.json feat(assets): Delete original assets unused outside of the optimization pipeline (#8954) 2023-11-08 10:23:23 +01:00
tsconfig.eslint.json feat: use typescript-eslint@v6's reworked configs (#7425) 2023-07-03 20:59:43 +08:00
tsconfig.json chore: add empty tsconfig to prevent TypeScript from crawling (#4937) 2022-09-30 16:02:39 -05:00
turbo.json test: add setup for Vercel / Netlify tests (#7716) 2023-07-21 21:24:36 +02:00

Build the web you want


Astro is a website build tool for the modern web —
powerful developer experience meets lightweight output.

Build Status License npm version

Install

The recommended way to install the latest version of Astro is by running the command below:

npm create astro@latest

You can also install Astro manually by running this command instead:

npm install --save-dev astro

Looking for help? Start with our Getting Started guide.

Looking for quick examples? Open a starter project right in your browser.

Documentation

Visit our official documentation.

Support

Having trouble? Get help in the official Astro Discord.

Contributing

New contributors welcome! Check out our Contributors Guide for help getting started.

Join us on Discord to meet other maintainers. We'll help you get your first contribution in no time!

Directory

Package Release Notes
astro astro version
create-astro create-astro version
@astrojs/react astro version
@astrojs/preact astro version
@astrojs/solid-js astro version
@astrojs/svelte astro version
@astrojs/vue astro version
@astrojs/lit astro version
@astrojs/node astro version
@astrojs/vercel astro version
@astrojs/cloudflare astro version
@astrojs/partytown astro version
@astrojs/sitemap astro version
@astrojs/tailwind astro version
@astrojs/alpinejs astro version
@astrojs/mdx astro version

CII Best Practices

Several official projects are maintained outside of this repo:

Project Repository
@astrojs/compiler withastro/compiler
Astro Language Tools withastro/language-tools

Sponsors

Astro is free, open source software made possible by these wonderful sponsors.

❤️ Sponsor Astro! ❤️

Astro's sponsors.