0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-06 22:10:10 -05:00
The web framework for content-driven websites. ️ Star to support our work!
Find a file
Bjorn Lu ebd364e392
Add new fields to API route context (#4986)
* Add new fields to API route context

* Add props and redirect

* Pass custom redirect status code

* Correctly pass props in api routes

* Add better docs

* Add test

* Fix build

* Add constants file

* Add links to jsdoc

* Workaround lint issue

* Thanks Chris

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>

* Missed one doc change

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>

* Add more detail to the changesets

* Strict redirect status type

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-10-12 17:03:49 -04:00
.changeset Add new fields to API route context (#4986) 2022-10-12 17:03:49 -04:00
.devcontainer
.github Run astro check on all examples in CI (#5022) 2022-10-12 09:48:29 -03:00
.gitpod
.vscode
assets
examples [ci] format 2022-10-12 12:50:30 +00:00
packages Add new fields to API route context (#4986) 2022-10-12 17:03:49 -04:00
patches
scripts Run astro check on all examples in CI (#5022) 2022-10-12 09:48:29 -03:00
.Dockerfile
.editorconfig
.eslintignore
.eslintrc.cjs Suppress eslint warnings (#4953) 2022-10-03 23:37:21 +08:00
.git-blame-ignore-revs
.gitignore
.gitpod.yml
.npmrc
.nvmrc
.prettierignore
.prettierrc.js
CONTRIBUTING.md
LICENSE
package.json Added support for updating tsconfig.json when using astro add (#4959) 2022-10-12 15:11:25 -03:00
pnpm-lock.yaml Add new fields to API route context (#4986) 2022-10-12 17:03:49 -04:00
pnpm-workspace.yaml
README.md Updating sponsors list in README (#4979) 2022-10-04 19:16:29 +00:00
SECURITY.md
SECURITY_CONTACTS
STYLE_GUIDE.md
tsconfig.base.json
tsconfig.json
turbo.json

Astro logo

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

Install

# Recommended!
npm create astro@latest

# Manual:
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/deno astro version
@astrojs/netlify 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/turbolinks astro version
@astrojs/alpinejs astro version
@astrojs/image astro version
@astrojs/mdx astro version
@astrojs/prefetch 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 generously supported by Netlify, Storyblok, and several other amazing organizations.

❤️ Sponsor Astro! ❤️

sponsors