0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00
Commit graph

406 commits

Author SHA1 Message Date
Houston (Bot)
8281ebddaa
[ci] release (#9802)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-26 13:30:42 +00:00
Arsh
3435b7f1e1
fix(vercel): make Astro.cookies work again (#9809)
* addCookieHeaders

* add changeset
2024-01-24 22:47:33 +05:30
Houston (Bot)
bfd30041cf
[ci] release (#9772)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-22 18:37:25 -05:00
Arsh
3a233c9ea2 [ci] format 2024-01-22 23:35:50 +00:00
Arsh
05adaaa2d2
fix(vercel): edge middleware (#9585)
* create vercel edge middleware

remove getVercelOutput

* handle node built-in modules

* edge function to node fetch

* adjust tests

* add test

* add changeset

* function paths as constants

* ensure node built-in modules are namespaced with `node:`

* x-astro-path as constant

* appease linter

* add comments for ASTRO_PATH_HEADER and ASTRO_LOCALS_HEADER

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2024-01-23 05:04:48 +05:30
Houston (Bot)
2292d0b580
[ci] release (#9709)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-18 10:30:19 +00:00
Emanuele Stoppa
9680cf2780 [ci] format 2024-01-17 13:11:46 +00:00
Emanuele Stoppa
d6edc75408
Adapter enhancements (#9661)
* quality of life updates for `App` (#9579)

* feat(app): writeResponse for node-based adapters

* add changeset

* Apply suggestions from code review

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>

* Apply suggestions from code review

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>

* add examples for NodeApp static methods

* unexpose createOutgoingHttpHeaders from public api

* move headers test to core

* clientAddress test

* cookies test

* destructure renderOptions right at the start

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>

* Fallback node standalone to localhost (#9545)

* Fallback node standalone to localhost

* Update .changeset/tame-squids-film.md

* quality of life updates for the node adapter (#9582)

* descriptive names for files and functions

* update tests

* add changeset

* appease linter

* Apply suggestions from code review

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>

* `server-entrypoint.js` -> `server.js`

* prevent crash on stream error (from PR 9533)

* Apply suggestions from code review

Co-authored-by: Luiz Ferraz <luiz@lferraz.com>

* `127.0.0.1` -> `localhost`

* add changeset for fryuni's fix

* Apply suggestions from code review

* Apply suggestions from code review

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Luiz Ferraz <luiz@lferraz.com>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>

* chore(vercel): delete request response conversion logic (#9583)

* refactor

* add changeset

* bump peer dependencies

* unexpose symbols (#9683)

* Update .changeset/tame-squids-film.md

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

---------

Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Luiz Ferraz <luiz@lferraz.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-01-17 13:10:43 +00:00
Houston (Bot)
7a275c1648
[ci] release (#9625)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-11 16:32:08 +08:00
Arsh
e50d75f41f [ci] format 2024-01-10 14:53:36 +00:00
Arsh
d7f1903cde
fix(vercel): fallback to static 404.html (#9648) 2024-01-10 14:52:29 +00:00
Houston (Bot)
75084b49d0
[ci] release (#9609)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-06 02:15:45 +05:30
Arsh
bd3f36e6ab [ci] format 2024-01-05 18:28:59 +00:00
Arsh
22a5405b4a
fix(vercel): include 404.html as fallback in the static adapter (#9591)
* include 404.html as fallback

* add changeset

* include only when 404.astro exists

* add test

* route.component -> route.pathname
2024-01-05 23:57:48 +05:30
Arsh
218ea0781b [ci] format 2024-01-04 16:38:10 +00:00
Arsh
bd8fa7acd2
chore(vercel): deprecate speedInsights (#9598)
* deprecate speedInsights config

* add changeset
2024-01-04 16:37:13 +00:00
Houston (Bot)
d854330571
[ci] release (#9541)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-02 10:26:33 -05:00
Arsh
7b586a6e23
fix(vercel): prevent build failure with node 21 (#9550)
* fix(vercel): prevent build failure with node 21

* add changeset
2023-12-29 21:18:15 +05:30
Houston (Bot)
98fa8f02ab
[ci] release (#9491)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-27 13:34:07 -05:00
Houston (Bot)
a171c22f37 [ci] format 2023-12-27 17:38:12 +00:00
Sarah Rainsberger
36bedf1a5f [ci] format 2023-12-21 20:36:15 +00:00
Sarah Rainsberger
1baf0b0d3c
[docs] minimal integration READMEs (#9479)
Co-authored-by: Emanuele Stoppa <602478+ematipico@users.noreply.github.com>
Co-authored-by: Elian <15145918+ElianCodes@users.noreply.github.com>
Co-authored-by: Alexander Niebuhr <45965090+alexanderniebuhr@users.noreply.github.com>
2023-12-21 16:35:11 -04:00
Houston (Bot)
242fd71a6a
[ci] release (#9406)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-14 09:01:03 -05:00
Jacob Lamb
836ab6214e
chore(vercel): Add beta option for status (#9413)
* Add beta option for status

* Create stupid-cheetahs-sell.md

* Add warning for beta

* Update packages/integrations/vercel/src/serverless/adapter.ts

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>

* Switch to `minor` and document new API/option

* Update README.md

* Update README.md

* Update packages/integrations/vercel/README.md

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>

* Update .changeset/stupid-cheetahs-sell.md

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>

---------

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2023-12-13 12:12:48 +00:00
Arsh
8aeb0b5797
fix(vercel): handle dots in source path for redirects (#9289)
* add fix

* add test

* add changeset
2023-12-12 03:50:22 +05:30
Houston (Bot)
f47b85ce6f
[ci] release (#9365)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-11 11:57:19 +00:00
Sarah Rainsberger
bebf5cf22d
[docs] Vercel README - update code samples (#9383) 2023-12-08 16:04:54 -06:00
Arsh
9d29ef11f6 [ci] format 2023-12-08 16:26:49 +00:00
Arsh
1e342e34eb
fix(vercel): clear artifacts from redirects (#9287) 2023-12-08 16:25:39 +00:00
Geoffrey Casper
dfbc707908
Allow async functions in the Vercel edge middleware integration (#9334)
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
Co-authored-by: lilnasy <69170106+lilnasy@users.noreply.github.com>
2023-12-07 21:43:47 +08:00
Houston (Bot)
3e4109b08f
[ci] release (#9340)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-06 15:09:30 -05:00
Matthew Phillips
1685cc42b5
Define the Vercel adapter's peerDependency (#9348)
* Define the Vercel adapter's peerDependency

* Update .changeset/nasty-carrots-study.md

Co-authored-by: Alexander Niebuhr <alexander@nbhr.io>

---------

Co-authored-by: Alexander Niebuhr <alexander@nbhr.io>
2023-12-06 14:58:35 -05:00
Houston (Bot)
5f13e7e0dc
[ci] release (#9307)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-12-05 09:39:16 -04:00
Houston (Bot)
023860bded
[ci] release (beta) (#9251)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-01 14:12:49 -05:00
Bjorn Lu
3cbd8ea753
Remove remaining deprecated APIs (#9263)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-12-02 00:59:22 +08:00
Houston (Bot)
c495f1ac17
[ci] release (beta) (#9228)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-29 13:50:18 -05:00
Arsh
49aa215a01
Switch app.render signature (#9199)
* feat(app): app.render optional object

* tests

* update vercel and node

* update changeset

* deprecation notice and loggin

* clarify changeset

* add node, vercel changeset

* deduplicate code
2023-11-29 21:08:42 +05:30
Houston (Bot)
415fec54f8
[ci] release (beta) (#9114)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-27 12:59:31 -05:00
Bjorn Lu
a145ac07e7
Remove vercel deprecated analytics option (#9184) 2023-11-24 22:00:03 +08:00
Bjorn Lu
abf601233f
Update all dependencies (#9138)
Co-authored-by: delucis <delucis@users.noreply.github.com>
2023-11-21 12:09:19 +08:00
Houston (Bot)
653ad939ce
[ci] release (#8989)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-08 08:51:24 +01:00
lilnasy
6e30bdc941 [ci] format 2023-11-07 14:03:45 +00:00
Arsh
754e4fd31c
feat(vercel): streaming (#8879) 2023-11-07 14:01:04 +00:00
Bjorn Lu
ec7f531682
Fix examples smoke test fail (#8923) 2023-10-26 19:13:43 +08:00
Bjorn Lu
c8976440ff
Prevent bumping peer deps (#8893) 2023-10-26 18:07:02 +08:00
Houston (Bot)
a86b41c852
[ci] release (#8895)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-10-24 12:26:45 -04:00
Bjorn Lu
5dd1ed50b2
Prevent Vercel serverless generate static redirect pages (#8896) 2023-10-24 18:26:34 +08:00
ematipico
e4ba50162e [ci] format 2023-10-23 10:04:32 +00:00
Arsh
b209e53358
feat(vercel): maxDuration config (#8867)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-10-23 11:02:23 +01:00
Houston (Bot)
42a83ffcfe
[ci] release (#8861)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-10-23 17:22:50 +08:00