Emanuele Stoppa
2dd00a0024
chore: import sort source code, exception for the astro
package ( #10242 )
...
* chore: import sort source code, exception for the `astro` package
* fix import sorting bug
* Update packages/integrations/lit/server.js
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
---------
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2024-02-27 11:15:27 +00:00
Houston (Bot)
6012163d8f
[ci] release ( #10218 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-02-26 15:33:39 +00:00
Ming-jun Lu
ae2a10e1a7
Fix an issue where Vercel adapter may create functions for prerendered routes ( #10231 )
...
* fix: fix an issue where Vercel adapter may create functions for prerendered routes
* test: update test cases in `split.test.js`
* chore: add changeset
* refactor: apply suggested changes from code review
* Apply suggestions from code review
---------
Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
2024-02-26 18:58:49 +05:30
Houston (Bot)
3de7b2c7ec
[ci] release ( #10213 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-02-23 09:31:55 -05:00
Matthew Phillips
a013182d32
Fixes edge middleware calling nested routes ( #10215 )
2024-02-23 09:13:10 -05:00
Houston (Bot)
0b4e5298d2
[ci] release ( #10192 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-02-22 11:17:25 -05:00
Matthew Phillips
3cc2010927
Fix cssesc from breaking browser code ( #10194 )
...
* Fix cssesc from breaking browser code
* Include specific thing instead
* Update .changeset/quick-bottles-march.md
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
* Fix ISR
* Remove query stripping altogether
* Warn on client usage
* Fix build
* oops
---------
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-02-22 11:11:41 -05:00
Emanuele Stoppa
1e638c4019
chore: import sorting for test folder and e2e folder ( #10190 )
2024-02-22 13:58:10 +00:00
Emanuele Stoppa
062623438b
chore: use biome to sort imports - only test files ( #10180 )
...
* chore: use biome to sort imports
* do the sorting
* Update package.json
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
---------
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2024-02-21 14:08:19 +00:00
Emanuele Stoppa
ddf0f924b5
chore: move nodetest.js
to test.js
( #10142 )
...
* chore: move `nodetest.js` to `test.js`
* chore: move `nodetest.js` to `test.js`
* remove script
2024-02-16 16:20:49 +00:00
Houston (Bot)
e24db1d8a6
[ci] release ( #10092 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-02-13 14:25:59 -07:00
Ming-jun Lu
bcd9202228
[ci] format
2024-02-13 13:24:10 +00:00
Ming-jun Lu
37c75108e7
chore(@astrojs/vercel): migrate tests to node:test
( #10010 )
...
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-02-13 13:23:07 +00:00
Florian Lefebvre
2ffc5721bc
fix(vercel): trailing slash conflict ( #10082 )
2024-02-13 11:36:22 +00:00
Emanuele Stoppa
09a6273fe2
test: mocha should ignore *.nodetest.js
files ( #10088 )
2024-02-12 13:03:22 +00:00
Houston (Bot)
ef00224a86
[ci] release ( #10018 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-02-07 23:55:29 +05:30
Arsh
9836dddf82
[ci] format
2024-02-07 16:10:36 +00:00
Arsh
0699f34d5c
feat(vercel): middleware verification ( #9987 )
...
* feat(vercel): verification for edge middleware
* add changeset
* Apply suggestions from code review
---------
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2024-02-07 21:39:39 +05:30
Houston (Bot)
fa9218e836
[ci] release ( #10014 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-02-07 15:38:45 +01:00
Arsh
b07a3846f5
[ci] format
2024-02-07 13:37:44 +00:00
Arsh
e2fe51c828
feat(vercel): ISR ( #9714 )
...
* feat(vercel): isr
* bypass token
* exclusion of certain paths
* add test
* remove search params in dev mode
* Apply suggestions from code review
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* Apply suggestions from code review
* Apply suggestions from code review
* fix missing await
* escape src for regex
* cleanup
* revalidate -> expiration
* update type docs
* always exclude /_image
* add changeset
* Apply suggestions from code review
* always create serverless function for /_image
* Apply suggestions from code review
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Apply suggestions from code review
---------
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-02-07 19:06:37 +05:30
Houston (Bot)
57ab98f531
[ci] release ( #9948 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-02-02 15:59:15 -05:00
Matthew Phillips
bc1742df94
Revert "Provide better ignores for Vercel's file tracer ( #9885 )" ( #9955 )
...
* Revert "Provide better ignores for Vercel's file tracer (#9885 )"
This reverts commit 49e0c24d7f
.
* Changeset
2024-02-02 15:43:30 -05:00
Houston (Bot)
2561c99598
[ci] release ( #9904 )
...
* [ci] release
* Update packages/astro/CHANGELOG.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update packages/integrations/vercel/CHANGELOG.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update packages/astro/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: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-02-01 10:04:19 +00:00
Matthew Phillips
520be8b113
[ci] format
2024-01-31 15:31:41 +00:00
Matthew Phillips
49e0c24d7f
Provide better ignores for Vercel's file tracer ( #9885 )
...
* Provide better ignores for Vercel's file tracer
* Improve the changeset
2024-01-31 10:30:35 -05:00
Emanuele Stoppa
041fdd5c89
feat(i18n): domain support ( #9143 )
...
* i18n(domains): validation and updated logic (#9099 )
* feat(i18n): domain with lookup table (#9112 )
* chore: add changelog, fix types and enable experimental support in node/vercel
* rebase and update lock file
* chore: fix failing test
* Apply suggestions from code review
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
* Update .changeset/tidy-carrots-jump.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* wip
* chore: rebase, conflicts and tests
* update lock file
* chore: correct configuration
* chore: correct configuration
* fix: regressions
* chore: fix conflicts and add more tests
* chore: add more validation
* chore: more tests and add more restrictions
* fix changeset
* change and revert adapters
* add another restriction
* lock file update
* Update packages/astro/src/@types/astro.ts
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update packages/astro/src/@types/astro.ts
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
* wat
* fix syntax error
* fix config example
* Fix for #9673 (#9680 )
* Fix for #9673
* 🦋 add changeset file
* Update breezy-plants-smoke.md
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
* ⚡ ️ simplified normalizeConfigPath
---------
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
* Fix env var replacement for export const prerender (#9807 )
* feat(alpinejs): allow customizing the Alpine instance (#9751 )
* feat(alpinejs): allows customzing the Alpine instance
* chore: add e2e tests
* fix: rename script
* Update index.ts
* fix: lockfile
* [ci] format
* chore: use correct lock file
* chore: rebase
* fix regressions in tests
* fix regressions in tests
* fix build
* add description
* fix missing types
* chore: fix tests, again :D
* eslint
* Update packages/astro/src/@types/astro.ts
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* chore: address feedback
* chore: fix regressions
* chore: refactor naming
* Update packages/astro/src/core/app/index.ts
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
* chore: address feedback
* update lock file
* chore: infer routing from options, not strategy
* merge from main
* merge from main
* Experimental support in vercel adapter
* Update packages/astro/src/@types/astro.ts
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update packages/astro/src/@types/astro.ts
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update .changeset/tidy-carrots-jump.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* better changesets
* Updates both experimental.i18nDomains and i18ndomains for experimental strategy
* fix link syntax
* consistent tabs/spaces
* Update packages/astro/src/@types/astro.ts
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* apply suggestion
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Lou Cyx <git@lou.cx>
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Co-authored-by: Florian Lefebvre <ematipico@users.noreply.github.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2024-01-31 13:55:03 +00:00
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