Thomas Jaggi
2a1c085b19
[MDX] Support remark-rehype options from Astro Markdown config ( #5427 )
...
* [MDX] Support remark-rehype options from Astro Markdown config
* [MDX] Add remarkRehype to MdxOptions, extend with default markdown config
* [MDX] Add remarkRehype to README
* [MDX] Fix remarkRehype inheritance, add tests
* [MDX] Update remarkRehype docs in README
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* [MDX] Fix remarkRehype docs
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-11-22 10:12:25 -05:00
Sam Chen
cef33dd841
Remove temp tailwind config file in finally ( #5450 )
2022-11-21 12:30:59 -05:00
Daniel
743000cc70
Use Cloudflare Pages to serve static assets and support _headers
, _redirects
and _routes.json
( #5347 )
...
Co-authored-by: AirBorne04 <unknown>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2022-11-21 21:31:21 +08:00
Chris Swithinbank
ef2ffc7ae9
Fix docs link in MDX integration README ( #5448 )
2022-11-21 12:15:05 +01:00
Bjorn Lu
4b188132ef
Correctly transform third-party JSX files ( #5437 )
2022-11-18 11:36:09 -05:00
Matthew Phillips
f5ed630bca
Use Vite's resolve to resolve paths for client:only ( #5434 )
...
* Use Vite's resolve to resolve paths for client:only
* Adding a changeset
* Add it to the markdown legacy plugin too
* Remove fully resolving
* Fully resolve in the analyzer
* don't do this twice
* remove dead code
2022-11-18 10:44:55 -05:00
Brenley Dueck
4266869f4f
fix: partytown base path ( #5425 )
...
* fix: partytown base path
* add changeset
2022-11-17 14:46:20 -05:00
Gabriel Pereira Woitechen
936c1e411d
Add missing fetchpriority
attribute to ImgHTMLAttributes
( #5433 )
2022-11-17 14:20:09 -04:00
Fred K. Bot
bbb329e65e
[ci] release ( #5419 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-17 10:52:42 -05:00
Scttpr
12236dbc06
feat: provide HOST env variable at runtime ( #5421 )
...
* feat: provide HOST env variable at runtime
* doc: add change to documentation
* Update documentation according to suggestions
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* fix: empty string is considered as undefined
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2022-11-17 10:48:20 -05:00
Bjorn Lu
ff35b4759b
Fix JSX tagging for anonymous higher-order components default export ( #5426 )
...
* Tag JSX for call expression default export
* Refactor type checks
* Add changeset
2022-11-17 10:46:24 -05:00
Matthew Phillips
1ab505855f
Fix regression with loading .ts in .mjs config ( #5431 )
...
* Fix regression with loading .ts in .mjs config
* Account for directories
2022-11-17 10:32:59 -05:00
Bjorn Lu
b22ba1c03a
Fix preview --host in Node.js 18 ( #5430 )
2022-11-17 22:53:51 +08:00
wulinsheng123
e2fb0c4ff2
Log error if failed to fetch remote image ( #5393 )
...
* I cant catch an error in the loadRemoteImage function when the fetch function occurs error
* I cant catch an error in the loadRemoteImage function when the fetch function occurs error
* fix ssg file
Co-authored-by: wuls <linsheng.wu@beantechs.com>
Co-authored-by: Okiki Ojo <okikio.dev@gmail.com>
2022-11-16 16:55:48 -05:00
Jean-Baptiste Alleaume
aa16b6cebc
Add response iterator to node adapter ( #5418 )
...
* add response iterator to node adapter
* changeset
* add node-fetch types
* fix @types/node-fetch as a dev dep
2022-11-16 16:55:15 -05:00
Matthew Phillips
a9f7ff9667
Prevent dev from crashing when there are errors in template ( #5417 )
...
* Prevent dev from crashing when there are errors in template
* Adding a changeset
2022-11-16 12:22:35 -05:00
Fred K. Bot
49c1a5d439
[ci] release ( #5399 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-16 10:07:56 -05:00
Matthew Phillips
9f80a4046f
Allow Code component to run in Vercel ( #5409 )
...
* Allow Code component to run in Vercel
* Adding a changeset
* Pass theme through to `codeToHtml`
* Use script to generate languages
* another bundling approach
* fix lint warnings
2022-11-16 08:57:53 -05:00
Matthew Phillips
a278c7ae6f
Restart dev server on package.json changes ( #5412 )
...
* Restart dev server on package.json changes
* Adding a changeset
* update vitefu
* lockfile updated
2022-11-16 08:34:19 -05:00
impcyber
3c5cb69488
Fix: https://github.com/withastro/astro/issues/5400 ( #5410 )
...
* Fix: Astro generates empty .-index.bundle.js
https://github.com/withastro/astro/issues/5400
* Create loud-penguins-tickle.md
2022-11-15 15:26:37 -05:00
Matthew Phillips
40226dd14d
Use Vite to load non JS astro configs ( #5377 )
...
* Use Vite to load non JS astro configs
* Adding a changeset
* Allow config to not exist
* Use a file url
* Use proload as a fallback
* add missing peerdep
* fix lint mistakes
* Refactor the vite-load
* First check if the file exists
* Pass through fs
* Update packages/astro/src/core/config/vite-load.ts
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* Also load astro.config.cjs
* Do search before trying to load
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-11-15 10:02:23 -05:00
李瑞丰
505abfd643
fix(create-astro): fix error when don't have template input ( #5404 )
2022-11-15 15:27:16 +08:00
Matthew Phillips
ee750087ce
Fix usage of the Image component with the Vercel adapter ( #5361 )
...
* Revert "Revert "Allow image-pool to be used as its own Worker (#5317 )" (#5360 )"
This reverts commit 20e60c6e08
.
* Remove special image-pool.js moving around
* Merge in assetIncludes
* changeset
* Copy to chunk folder in SSR too
* Update tidy-shoes-yawn.md
2022-11-14 13:42:35 -05:00
Fred K. Bot
993b58d567
[ci] release ( #5365 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-14 13:31:31 -05:00
Nate Moore
e385076efe
Upgrade compiler ( #5369 )
...
* chore: upgrade compiler
* chore: upgrade compiler
* chore: add changeset
* chore: upgrade compiler
* chore: generate lockfile
* Update tricky-dodos-cheer.md
* chore: upgrade compiler
Co-authored-by: Nate Moore <nate@astro.build>
2022-11-14 11:01:03 -06:00
Erika
f9104354b8
Fix getStaticPaths
regressions with nested arrays ( #5375 )
...
* Fix getStaticPaths regression
* Add changeset
* Add test
2022-11-11 17:50:40 -04:00
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
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
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
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
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
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
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
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
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
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
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
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
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
Matthew Phillips
f6add3924d
When creating a new dev container, restart it if previously started ( #5314 )
...
* When creating a new dev container, restart it if previously started
* Adding a changeset
2022-11-07 15:14:34 -05:00