Commit graph

4389 commits

Author SHA1 Message Date
Fred K. Bot
4c1ffef3e4
[ci] release (#5078)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-10-18 14:26:00 -04:00
matthewp
8cf692766b [ci] format 2022-10-18 15:49:01 +00:00
Matthew Phillips
5c0c6e1ac6
Mark @astrojs/node to be noExternal (#5114)
* Mark @astrojs/node to be noExternal

* Adding a changeset
2022-10-18 11:47:18 -04:00
matthewp
1f57c0ca64 [ci] format 2022-10-18 13:54:56 +00:00
Daniel
5923dd77c1
adding cookies to api route response [simple result] (#5060)
* adding cookies to the an api route response, also when returning a simple result

* in dev server, convert a simple endpoint result into a response object

Co-authored-by: AirBorne04 <unknown>
Co-authored-by: AirBorne04 <>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-10-18 09:52:49 -04:00
Princesseuh
04ce7f4e5c [ci] format 2022-10-18 13:26:12 +00:00
Josh Kramer
f684e9d361
Implicit element types (#5098)
* Separate arbitrary intrinsic element definition

* Create changeset
2022-10-18 10:23:48 -03:00
Yaroslav Lapin
66e8ae3bee
update with-tailwind example to use mdx (#5104)
* add mdx since md is deprecated now

* rename .md -> .mdx

* fix component import

* yarn format
2022-10-18 09:22:48 -04:00
Fred K. Bot
d7407dbb15
[ci] update lockfile (#5094)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-10-18 09:20:36 -04:00
Rishi Raj Jain
df4d84610a
Fix port env in standalone mode (#5111) 2022-10-18 15:31:21 +08:00
Bjorn Lu
ef0c543163
Support spread parameters for server endpoints (#5106) 2022-10-18 13:16:24 +08:00
Bjorn Lu
0edfdd3259
Ensure CLI flags override function-style server config (#5110) 2022-10-18 13:10:16 +08:00
花果山大圣
0db9c08a8d
chore: add eslint cache (#5101) 2022-10-17 22:32:20 +08:00
Sujaykumar
bf01c8bf67
Fix missing image src in config for examples docs (#5109) 2022-10-17 22:29:53 +08:00
Erika
ce01225a70
Fix types not working properly when using moduleResolution: 'node16' (#5108)
* Fix imports failling under `moduleResolution: node16`

* Add changeset

* Revert comment about Vite 4
2022-10-17 11:29:39 -03:00
JuanM04
dd354f83e8 [ci] format 2022-10-14 20:21:16 +00:00
Juan Martín Seery
cd25abae59
feat(vercel): includeFiles and excludeFiles (#5085)
* refactor + include/excludeFiles

* Changeset

* Updated README.md

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

* Missing .js

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-10-14 17:19:35 -03:00
Juan Martín Seery
f8198d2502
feat(vercel): Edge improvements (#5086)
* Added error on "output" == "static"

* Minify output

* Changeset
2022-10-14 17:17:13 -03:00
Erika
ddfbef5acb
Fix astro add adding lines from extended configurations (#5095) 2022-10-14 15:16:41 -03:00
Bjorn Lu
0173c2b2df
Suppress warnings for solidjs dependency crawling (#5089) 2022-10-14 17:51:42 +08:00
Juan Martín Seery
49a8d18b49
fix: pnpm install command on astro add (#5087) 2022-10-14 15:08:51 +08:00
matthewp
f49d80d637 [ci] format 2022-10-13 21:42:13 +00:00
Matthew Phillips
90b715d5c8
Fixes JSX usage of slots with dashes in their name (#5080)
* Fixes JSX usage of slots with dashes in their name

* Adding a changeset
2022-10-13 17:40:17 -04:00
Matthew Phillips
5fb7c9383a
Compat with Astro < 1.5 (#5082)
* Compat with Astro < 1.5

* Adding a changeset
2022-10-13 16:10:48 -04:00
Matthew Phillips
35458e6880
Revert "Improved benchmark output (#5077)" (#5081)
* Revert "Improved benchmark output (#5077)"

This reverts commit 9e041f464c.

* Still use raw
2022-10-13 15:53:47 -04:00
Benjamin Geets
984bc7d0de
doc(node): fix import (#5079) 2022-10-13 15:30:31 -04:00
Matthew Phillips
9e041f464c
Improved benchmark output (#5077)
* Improved benchmark output

* Show benchmarking table
2022-10-13 15:22:51 -04:00
matthewp
d361a3ec35 [ci] format 2022-10-13 19:20:09 +00:00
Matthew Phillips
df453e420f
Refactor rendering for testing (#5071)
* Refactor rendering for testing

* Correctly pass the mod for endpoints
2022-10-13 15:18:28 -04:00
natemoo-re
4866ff882a [ci] format 2022-10-13 19:17:42 +00:00
Nate Moore
d25f54cb93
[Vue] add support for appEntrypoint (#5075)
* feat(vue): add support for appEntrypoint

* chore: add changeset

* test(vue): add tests for app entrypoint

* docs(vue): update README to include app entrypoint

* fix(vue): prefer resolvedVirtualModuleId

Co-authored-by: Nate Moore <nate@astro.build>
2022-10-13 14:15:57 -05:00
Erika
6f9a88b31b
Fix aliases from jsconfig.json not being picked up anymore (#5076)
* Fix aliases from jsconfig.json not being picked up anymore

* Add changeset
2022-10-13 15:39:32 -03:00
Fred K. Bot
81d57f2638
[ci] release (#5046)
* [ci] release

* Update packages/integrations/node/CHANGELOG.md

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

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-10-13 12:29:24 -04:00
Bjorn Lu
3918787cb9
Support relative protocol image URL (#5072)
* Support relative protocol image URL

* Fix test

* Actually fix test
2022-10-13 11:59:38 -04:00
Fred K. Bot
45728a0d6e
[ci] update lockfile (#5069)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-10-13 11:35:52 -04:00
Bjorn Lu
93f72f90bc
Fix image external config in build (#5073) 2022-10-13 11:16:08 -04:00
Bjorn Lu
ac6e2af73c
Fix failing SSR test (#5067) 2022-10-13 10:47:37 -04:00
matthewp
575bf9205e [ci] format 2022-10-12 21:27:56 +00:00
Matthew Phillips
e55af8a232
Node.js standalone mode + support for astro preview (#5056)
* wip

* Deprecate buildConfig and move to config.build

* Implement the standalone server

* Stay backwards compat

* Add changesets

* correctly merge URLs

* Get config earlier

* update node tests

* Return the preview server

* update remaining tests

* swap usage and config ordering

* Update packages/astro/src/@types/astro.ts

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

* Update .changeset/metal-pumas-walk.md

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

* Update .changeset/metal-pumas-walk.md

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

* Update .changeset/stupid-points-refuse.md

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

* Update .changeset/stupid-points-refuse.md

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

* Link to build.server config

Co-authored-by: Fred K. Schott <fkschott@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-10-12 17:25:51 -04:00
matthewp
2b7fb848bb [ci] format 2022-10-12 21:06:52 +00:00
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
Princesseuh
07d16ff43c [ci] format 2022-10-12 18:13:53 +00:00
Erika
0ea6187f95
Added support for updating tsconfig.json when using astro add (#4959)
* Added support for updating tsconfig.json when using astro add

* Refactor

* Remove unneeded change

* Fix build failling due to type difference

* Extend changeset description
2022-10-12 15:11:25 -03:00
Juan Martín Seery
a5e3ecc803
feat: restart dev server when tsconfig and tailwind config changes (#4947)
* First run

* Works with tailwind!

* Added TSConfig to watchlist

* Changeset

* Fix eslint

* Renamed `isConfigReload` --> `isRestart` and `injectWatchTarget` --> `addWatchFile`

* Refactored watchTargets to watchFiles

* Refactor createSettings

* addWatchFile now accepts URL

* Fix getViteConfig

* Expanded description of the change

Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-10-12 11:36:33 -04:00
bluwy
5412c0c114 [ci] format 2022-10-12 14:34:35 +00:00
Bjorn Lu
f7fcdfe621
Support solidjs libraries (#5059) 2022-10-12 21:29:26 +08:00
Fred K. Bot
5cab04521a
[ci] update lockfile (#5054)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-10-12 09:09:59 -04:00
Princesseuh
b7bff4847b [ci] format 2022-10-12 12:50:30 +00:00
Erika
f604ef6c69
Run astro check on all examples in CI (#5022)
* Run astro check on all examples in CI

* Output stderr

* Build Astro before running checks

* Making things faster + colors

* Fix errors inside examples

* Add congrats message

* Revert unentional change to tsconfigs

* Remove more unneeded changes
2022-10-12 09:48:29 -03:00
matthewp
640ce72d33 [ci] format 2022-10-12 12:33:46 +00:00