Matthew Phillips
f5616a8ac0
[ci] format
2024-08-13 12:59:45 +00:00
Matthew Phillips
932bd2eb07
Encrypt server islands props ( #11535 )
...
* Encrypt server islands props
* Comment on the hex algo
* Use @oslojs/encoding
* Rename functions
* Add base to test
* Remove old tests no longer valid
* Run test locally
* Make sure adapters run before manifest
* Add a changeset
* Adjust test adapter
* don't assume adapter is at root
* Add a changeset
* Updates on review comments
* Update oslo
* Add better description of Node adapter change
2024-08-13 08:58:47 -04:00
Darius
72c7ae9901
update formatter config ( #11640 )
...
* update formatter config
* format
---------
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2024-08-08 12:12:50 +02:00
Bjorn Lu
ea82b03cd6
Improve regex performance ( #11635 )
2024-08-07 16:01:23 +08:00
Florian Lefebvre
5848d97867
fix: astro:env getSecret ( #11296 )
2024-06-20 15:54:54 +02:00
wackbyte
7d59750661
chore: logging cleanup ( #11263 )
2024-06-17 15:05:48 +08:00
Matthew Phillips
1296cb9b1a
[ci] format
2024-06-14 20:30:45 +00:00
Matthew Phillips
f5f8ed275b
Fix backwards compat with Astro <= 4.9 ( #11261 )
2024-06-14 16:29:53 -04:00
Florian Lefebvre
2bdca27ff4
feat: add support for astro:env to node and vercel ( #11199 )
2024-06-10 16:43:48 +02:00
Dawid Kobierski
d0248bc083
fix(node): add missing error logging ( #11202 )
2024-06-07 10:26:16 +01:00
Andrés Correa Casablanca
4268d389fc
[ci] format
2024-03-19 15:44:07 +00:00
Andrés Correa Casablanca
28e33a2f9c
fix: do not append trailing slash to subresource urls ( #10491 )
...
* fix: do not append traling slash to subresource urls
Signed-off-by: Andres Correa Casablanca <andreu@kindspells.dev>
* test: fix broken test
Signed-off-by: Andres Correa Casablanca <andreu@kindspells.dev>
* refactor: packages/integrations/node/src/serve-static.ts
Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
---------
Signed-off-by: Andres Correa Casablanca <andreu@kindspells.dev>
Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
2024-03-19 21:13:08 +05:30
Arsh
7138aa4678
[ci] format
2024-03-18 14:15:46 +00:00
Arsh
83f9105cd5
fix(node): handle offshoot promise rejections ( #10454 )
...
* fix(node): handle offshoot promise rejections
* add test
* add changeset
* Update packages/integrations/node/test/errors.test.js
2024-03-18 19:44:46 +05:30
Erika
d5277df5a4
fix(node): Safely create requests ( #10285 )
...
* fix(node): Wrap request creation in try catch
* chore: changeset
2024-03-01 10:26:28 +00:00
Satanshu Mishra
df05138ebe
[ci] format
2024-03-01 08:33:27 +00:00
Satanshu Mishra
b47dcaa259
fix(node): listen on 0.0.0.0 if server.host is set to true ( #10282 )
...
Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
Co-authored-by: Kevin Zuniga Cuellar <46791833+kevinzunigacuellar@users.noreply.github.com>
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-03-01 09:32:22 +01:00
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
Furkan Erdem
8cd38f0245
Fix(node): Custom headers are not present in responses from standalone Node server in preview mode ( #10208 )
...
* fix(node): add user specified headers to preview server responses
* docs: clarify comment
* style: new line
* test: remove test
* chore: add changeset
2024-02-23 08:23:33 -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
Marvin
6206fa91e5
[ci] format
2024-01-25 10:24:46 +00:00
Marvin
a12196d6b5
feat(node): add trailingSlash support ( #9080 )
...
* feat(node): add trailing slash support
* add changeset
* test(node): add base route test in trailing-slash.js
detected an infinite loop in base path when trailingSlash: never
* fix(node): avoid infinite redirect when trailingSlash: never
* address test failures after rebase pt.1
* address test failures after rebase pt.2
---------
Co-authored-by: lilnasy <69170106+lilnasy@users.noreply.github.com>
2024-01-25 10:23:27 +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
Arsh
af59b83162
[ci] format
2023-12-29 15:49:10 +00:00
Arsh
48f47b50a0
fix(node): prevent crash on stream error ( #9533 )
...
* fix(node): prevent crash on stream error
* add changeset
* Apply suggestions from code review
2023-12-29 21:17:52 +05:30
Erika
4aa8091582
fix: enforce separate type imports ( #9288 )
2023-12-04 17:56:32 +01:00
bluwy
05628aaa3c
Merge branch 'main' into next
2023-11-30 22:42:29 +08: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
Matthew Phillips
6e0292a1fa
[ci] format
2023-11-28 13:48:11 +00:00
Matthew Phillips
8f1d509574
Support immutable cache headers for _astro assets ( #9125 )
...
* Support immutable cache headers for _astro assets
* Update .changeset/twelve-fishes-fail.md
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* Update packages/integrations/node/src/http-server.ts
* Update expected max-age
* Add teh docs
* Update .changeset/twelve-fishes-fail.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update packages/integrations/node/README.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
---------
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-11-28 08:46:26 -05: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
pilcrowOnPaper
1862fb44eb
[ci] format
2023-11-15 23:41:21 +00:00
pilcrowOnPaper
c9487138d6
Cancel response stream when connection closes ( #9071 )
...
* cancel stream on close
* add changeset
* add test
* Update .changeset/modern-ways-develop.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
---------
Co-authored-by: lilnasy <69170106+lilnasy@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-11-16 05:09:41 +05:30
bluwy
b18d4bf3b1
[ci] format
2023-10-04 10:31:04 +00:00
Arsh
21e0757ea2
chore: remove undici polyfill ( #8729 )
2023-10-04 18:28:36 +08:00
Erika
47ea310f01
feat: resolve images through the file systems on applicable runtimes ( #8698 )
...
* feat: add a node image endpoint
* test: fix
2023-09-29 23:14:40 +02:00
ematipico
c49e865f4f
[ci] format
2023-09-20 08:30:38 +00:00
Arsh
2e1d5f8739
fix(node): report render error to the terminal ( #8599 )
2023-09-20 10:27:46 +02:00
Erika
4e395a6cab
config: migrate us to moduleResolution: 'node16' ( #8519 )
2023-09-13 16:49:22 +02:00
ematipico
ba7b23b9e0
[ci] format
2023-08-28 16:21:11 +00:00
Emanuele Stoppa
c7921e9e1b
refactor: use new Astro internals ( #8254 )
...
* refactor: use new Astro internals
* chore: update tests
---------
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2023-08-28 17:19:04 +01:00
Emanuele Stoppa
2d50d50b6a
Merge remote-tracking branch 'origin/main' into next
2023-08-22 14:02:15 +01:00
Emanuele Stoppa
d08c83ee3f
fix(@astrojs/node): handler should work with express
( #8176 )
2023-08-21 17:29:38 +01:00
Emanuele Stoppa
d43ca69c1d
Merge remote-tracking branch 'origin/main' into next
2023-08-21 14:21:53 +01:00
Arsh
4c15c06969
fix(node): delegate preview's not found and error handling to core/app ( #8141 )
...
* fix(node): delegate preview's not found and error handling to core/app
* add changeset
---------
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-18 15:51:46 -05:00
Emanuele Stoppa
7530d5689d
Merge remote-tracking branch 'origin/main' into next
2023-08-15 09:24:06 +01:00
natemoo-re
fa3e839843
[ci] format
2023-08-10 18:25:25 +00:00
Jerry_wu
b16cb787fd
Support --host
for Node adapter preview ( #6928 )
...
* supporting a network address access a website when an user set host = true in Node environment
* fix bug
* sumbit test code
* optimism
* delect white space
* test
* fix test
* fix test error
* test
* test
* test
* fix test error
* Optimizing code based on the comments
* optimize test
* fix: rebase issues
* chore: format
* chore: add changeset
* chore: format
* chore: format
* chore: lint
---------
Co-authored-by: wuls <linsheng.wu@beantechs.com>
Co-authored-by: Nate Moore <nate@astro.build>
2023-08-10 13:22:50 -05:00
Emanuele Stoppa
0f1e9d8361
chore: update prettier to 3.0
( #7957 )
2023-08-08 13:01:38 +01:00