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
Tony Sullivan 637919c8b6
Improvements to build and dev when building for subpaths (#3156)
* `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
.changeset Improvements to build and dev when building for subpaths (#3156) 2022-04-21 14:03:05 -04:00
.github remove unused renderers (#3063) 2022-04-11 11:19:41 -07:00
.gitpod logic for opening example projects (#2811) 2022-03-16 10:24:01 -05:00
.vscode update prettier width (#2968) 2022-04-02 14:15:41 -06:00
assets Remove SVG animation on GitHub/NPM (#2512) 2022-01-31 17:36:25 -06:00
examples [ci] release (#3165) 2022-04-21 12:19:52 -04:00
packages Improvements to build and dev when building for subpaths (#3156) 2022-04-21 14:03:05 -04:00
patches fix our weird beta release issues (#3031) 2022-04-10 18:17:39 -07:00
scripts [ci] collect stats 2022-04-21 12:04:14 +00:00
.editorconfig Use accessible indentation (#2253) 2021-12-22 16:11:05 -05:00
.eslintignore Improve GitHub Actions (#2041) 2021-11-29 15:11:15 -06:00
.eslintrc.cjs cleanup the repo, remove outdated files and folders (#2771) 2022-03-14 11:41:57 -07:00
.git-blame-ignore-revs add big reformat to git-blame-ignore-revs 2022-04-02 14:16:31 -06:00
.gitignore Fixes using React.lazy and Suspense (#3160) 2022-04-21 12:10:06 -04:00
.gitmodules Refactor smoke tests to use submodules (#2702) 2022-03-02 16:08:42 -06:00
.gitpod.Dockerfile Gitpod setup improvements (#2789) 2022-03-15 16:03:26 -05:00
.gitpod.yml logic for opening example projects (#2811) 2022-03-16 10:24:01 -05:00
.npmrc merge next into main (#2705) 2022-03-09 15:44:26 -06:00
.nvmrc Add Migration Guide to docs (#1751) 2021-11-12 07:40:49 -05:00
.prettierignore Added .output to prettierignore 2022-03-31 16:45:00 -03:00
.prettierrc.json update prettier width (#2968) 2022-04-02 14:15:41 -06:00
CODE_OF_CONDUCT.md [ci] yarn format 2021-06-24 00:27:22 +00:00
CONTRIBUTING.md Move from yarn to pnpm (#2455) 2022-03-08 15:46:11 -06:00
FUNDING.md format 2022-02-09 12:34:06 -08:00
FUNDING.yml Create FUNDING.md (#1137) 2021-08-17 22:39:20 -07:00
GOVERNANCE.md remove "experimental" warning from governance doc 2022-04-07 09:01:04 -07:00
LICENSE chore: remove @astrojs/parser (#2845) 2022-03-21 12:30:23 -05:00
package.json [ci] update lockfile (#3153) 2022-04-20 09:42:31 -04:00
pnpm-lock.yaml [ci] release (#3165) 2022-04-21 12:19:52 -04:00
pnpm-workspace.yaml fix format (#2736) 2022-03-08 15:20:04 -08:00
README.md Add README to packages/astro (#313) 2021-06-07 17:38:22 -05:00
STYLE_GUIDE.md Move from yarn to pnpm (#2455) 2022-03-08 15:46:11 -06:00
tsconfig.base.json Migrate to yarn monorepo (#157) 2021-04-30 16:33:35 -05:00
turbo.json add build:ci command which skips tsc (#2869) 2022-03-23 19:46:16 -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