0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-03-24 23:21:57 -05:00
astro/packages/astro
Tony Sullivan 637919c8b6
Improvements to build and dev when building for subpaths ()
* `astro build` should include the `base` provided in astro config

* test: updating build test to expect the base path in links/scripts

* ignore the default "base" value when building links/scripts

* fix: handling config that provides a base but no site

* fix: config.site was being ignored since it's a URL not a string

* hack: handle base path in dev for /public assets

* fix: dev redirect needs to ignore base default of ./

* fix: extra safety checks for the base path redirect

* refactor: simplifying it to remove the regex

* one last safety check - only redirect GET and use a 302 status

* fix: lost the leading slash when redirecting

* nit: adding comments to the test explaining how base is verified

* Remove extra console.log

* Adds a changeset

Co-authored-by: unknown <matthew@skypack.dev>
2022-04-21 14:03:05 -04:00
..
components [ci] format 2022-04-18 16:31:07 +00:00
src Improvements to build and dev when building for subpaths () 2022-04-21 14:03:05 -04:00
test Improvements to build and dev when building for subpaths () 2022-04-21 14:03:05 -04:00
astro-jsx.d.ts [ci] format 2022-04-04 16:27:03 +00:00
astro.js fix(cli): prevent CLI from hanging () 2022-04-03 14:32:39 -03:00
CHANGELOG.md [ci] release () 2022-04-21 11:34:03 -04:00
config.d.ts Export defineConfig helper () 2022-03-15 15:27:17 -05:00
config.mjs Export defineConfig helper () 2022-03-15 15:27:17 -05:00
env.d.ts Update JSDoc comments that get shown in editor () 2022-04-07 17:08:27 -04:00
package.json [ci] release () 2022-04-21 11:34:03 -04:00
README.md Adding StackUp Digital to the list of sponsors () 2022-02-03 12:12:06 -08:00
tsconfig.json Support Node v14.15+ () 2021-12-16 18:53:22 -05:00

Astro is a new kind of static site builder for the modern web—powerful developer experience meets lightweight output.

🚀 Read the launch post →

📚 Learn Astro →

Project Status

⚠️ Astro is still beta software—missing features and bugs are to be expected! We are quickly working our way towards a stable, production-ready v1.0 release, but we are still finalizing some of Astro's APIs.

That being said, there are quite a few Astro sites in production already. We're incredibly grateful to everyone who has made an early bet on Astro!

Quick Start

👾 Online 📦 Local

Try Astro in your browser!

Launch astro.new →

Get started with Astro using our interactive CLI!

npm init astro my-astro-project

Sponsors

You can sponsor Astro's development on Open Collective. Astro is generously supported by the following companies and individuals:

Platinum Sponsors

NetlifyNetlify VercelVercel

Gold Sponsors

‹div›RIOTS ‹div›RIOTS StackUp Digital StackUp Digital

Sponsors

SentryQoddi App Platform