Commit graph

5961 commits

Author SHA1 Message Date
Matthew Phillips
bee8c14afd
Use base rather than site to create subpath for links/scripts (#5371)
* Use base rather than site to create subpath for links/scripts

* Adding a changeset

* Warn when the site has a pathname but not using base

* fix asset test

* fix asset inlining behavior
2022-11-11 11:34:34 -08:00
Nate Moore
f47fb995c0
chore(ci): add timeout to all ci jobs (#5374)
Co-authored-by: Nate Moore <nate@astro.build>
2022-11-11 13:09:01 -06:00
matthewp
8aea2dea61 [ci] format 2022-11-11 16:30:25 +00:00
Matthew Phillips
9eee0f0166
Properly support trailingSlash: never with a base (#5358)
* Properly support trailingSlash: never with a base

* adding a changeset

* Pass through the base

* only mess with pathname when trailingSlash === 'never'

* maybe fixes stuff

* Update based on review notes
2022-11-11 08:28:29 -08:00
matthewp
4d425b46fc [ci] format 2022-11-11 16:04:21 +00:00
Bjorn Lu
f3181b5adf
Fix .html.astro file routing in dev (#5346)
* Fix .html.astro file routing in dev

* Fix error

* Add comment
2022-11-11 08:01:53 -08:00
Fred K. Bot
c01092dd09
[ci] update lockfile (#5367)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-11-11 09:41:42 -06:00
Danny Guo
06432c71d8
Fix a typo in the @astrojs/node documentation (#5364) 2022-11-11 14:23:44 +08:00
Bjorn Lu
3ae2a961b7
Respect Vite user config for third-party packages (#5345) 2022-11-11 14:22:43 +08:00
Fred K. Bot
7ec016fec3
[ci] release (#5359)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-10 16:09:24 -08:00
Matthew Phillips
20e60c6e08
Revert "Allow image-pool to be used as its own Worker (#5317)" (#5360)
* Revert "Allow image-pool to be used as its own Worker (#5317)"

This reverts commit d701ae074a.

* Adding a changeset

* Remove diff

* Remove unused code
2022-11-10 16:07:22 -08:00
Michael Rienstra
ae41f25e10
Consistent MD frontmatter typing (#5294)
* consistent MD frontmatter typing

* changeset
2022-11-10 14:54:34 -08:00
matthewp
edfbb0c9dd [ci] format 2022-11-10 22:14:23 +00:00
Matthew Phillips
b3d936ac24
Updated CSS naming algorithm (#5353)
* Updated CSS naming algorithm

* Adding a changeset

* Fix windows
2022-11-10 14:12:42 -08:00
Fred K. Bot
f8115180f3
[ci] release (#5329)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-10 13:01:45 -08:00
Fred K. Bot
e74ba6e5a3
[ci] update lockfile (#5348)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-11-10 10:50:42 -08:00
Chris Swithinbank
f9f1b531da
Fix astro.config.mjs in minimal example (#5350) 2022-11-10 09:50:29 -06:00
Obinna Ekwuno
8cdd5aabdb
Add “Open with CodeSandbox” buttons to example project READMEs (#5322)
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2022-11-10 11:32:13 +01:00
matthewp
c0cb65b18d [ci] format 2022-11-10 05:36:02 +00:00
Matthew Phillips
2d3c035bf9
Fixes failing mdx test (#5344) 2022-11-09 21:34:23 -08:00
matthewp
d82b392030 [ci] format 2022-11-10 04:18:49 +00:00
Matthew Phillips
1e6bbb2924
Change 404 to 301 for omitting base for items in public (#5342) 2022-11-09 20:16:44 -08:00
Fred K. Bot
301187e2f3
[ci] update lockfile (#5336)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-11-09 14:52:03 -06:00
matthewp
b5269bee4d [ci] format 2022-11-09 19:28:54 +00:00
Matthew Phillips
7e19e8b30d
Prevent mdx server hangs on JSX checking (#5330)
* Prevent mdx server hangs on JSX checking

* Adding a changeset

* Try a different approach to skips
2022-11-09 13:26:54 -06:00
Nate Moore
03a8f89d5f
Upgrade compiler (#5339)
* chore: upgrade @astrojs/compiler

* fix: update test to match new compiler behavior

* test: verify that all styles are bundled

Co-authored-by: Nate Moore <nate@astro.build>
2022-11-09 12:55:52 -06:00
Princesseuh
bab0e8bf53 [ci] format 2022-11-09 15:56:16 +00:00
Erika
a780f2595d
Migrate error messages to new format (and misc error improvements) (#5316)
* Migrate messages to errors data file

* Move errors to new 'error database' for easier improvements

* Fix tests

* Add changeset

* Remove unnecessary console.log

* Apply suggestions from code review

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* Update packages/astro/src/core/errors/errors-data.ts

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* Misc punctuations fixes and additions to README

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-11-09 11:53:42 -04:00
Matthew Phillips
faa01cec73
Fix the image tests (#5338)
* Fix the image tests

* fix more base tests
2022-11-09 11:22:53 -04:00
Bjorn Lu
230d71f4b7
Move rehype-pretty-code as devDep (#5337) 2022-11-09 22:23:05 +08:00
matthewp
92374c0f75 [ci] format 2022-11-09 13:35:06 +00:00
Bjorn Lu
dca762cf73
Preserve code element node meta for rehype syntax highlighters (#5335) 2022-11-09 08:32:13 -05:00
Bjorn Lu
dc00ca4648
Share picture fallback image with source (#5324) 2022-11-09 08:31:09 -05:00
Matthew Phillips
bcd0f8f8c4
404 when not using subpath for items in public in dev (#5328)
* 404 when not using subpath for items in public

* Adding a changeset
2022-11-09 08:30:02 -05:00
matthewp
48bde7018e [ci] format 2022-11-08 22:31:47 +00:00
Matthew Phillips
688f8e4bc1
Allow dynamic segments in injected routes (#5331)
* Allow dynamic segments in injected routes

* Little better

* Fallback for resolveId too
2022-11-08 17:30:09 -05:00
natemoo-re
16abbad0b6 [ci] format 2022-11-08 22:12:54 +00:00
Nate Moore
13119162f5
fix(examples): ts-check issue (#5332)
Co-authored-by: Nate Moore <nate@astro.build>
2022-11-08 16:11:17 -06:00
Princesseuh
dcdeca56ac [ci] format 2022-11-08 18:39:22 +00:00
Erika
0dcdc6fb1e
Update language-server and prettier plugin to latest versions (#5327)
* Update language-server and prettier plugin to latest versions

* Update lockfile
2022-11-08 14:37:19 -04:00
Fred K. Bot
e8ff4571f2
[ci] release (#5325)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-08 13:00:53 -05:00
Fred K. Bot
70adbe34a0
[ci] update lockfile (#5323)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-11-08 12:56:42 -05:00
matthewp
eed81fa213 [ci] format 2022-11-08 17:17:13 +00:00
Matthew Phillips
88c1bbe3a7
Ensure astro-island scripts render when using Astro.slots.render (#5326)
* Ensure astro-island scripts render when using Astro.slots.render

* Adding a changeset
2022-11-08 12:15:32 -05:00
Nate Moore
b211eadeff
create-astro bug fixes (#5319)
* fix(create-astro): upgrade cli-kit

* fix(create-astro): avoid setRawMode error

* chore(lint): disable create-astro linting

Co-authored-by: Nate Moore <nate@astro.build>
2022-11-08 10:33:36 -06:00
matthewp
982e446e8d [ci] format 2022-11-08 16:16:50 +00:00
Matthew Phillips
d701ae074a
Allow image-pool to be used as its own Worker (#5317)
* Allow image-pool to be used as its own Worker

* Adding a changeset

* fix image tests

* update picture tests

* Pass the current URL
2022-11-08 11:14:51 -05:00
Bjorn Lu
a79a37cad5
Support environment variables in Cloudflare and Netlify Edge functions (#5301)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-11-08 21:54:49 +08:00
Bjorn Lu
7f3b0398e0
Fix image test fail (#5321) 2022-11-08 08:31:05 -05:00
Fred K. Bot
56c37a6287
[ci] release (#5296)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-07 15:25:20 -05:00