aboutsummaryrefslogtreecommitdiff
path: root/packages/integrations/node/src/preview.ts (follow)
AgeCommit message (Collapse)AuthorFilesLines
2025-05-21[ci] formatGravatar JP Wienekus 1-1/+4
2025-05-21Handle module not found errors in server entrypoint (#13507)Gravatar Reuben Tier 1-1/+1
* Handle module not found errors in server entrypoint * Save my files -_-
2025-02-07chore: fix linting issues, integration tests (#13187)Gravatar Emanuele Stoppa 1-4/+0
* chore: fix linting issues * chore: update packages and directories * apply suggestions Co-authored-by: florian-lefebvre <69633530+florian-lefebvre@users.noreply.github.com>
2025-02-06[ci] formatGravatar renovate[bot] 1-3/+3
2025-01-22fix: correctly handle wildcard hosts in preview (#514)Gravatar Matt Kane 1-2/+8
2025-01-07fix(deps): update all non-major dependencies (#457)Gravatar renovate[bot] 1-1/+0
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-09-17Merge branch 'main' into nextGravatar Alexander Niebuhr 1-1/+1
2024-08-29chore: supress lintingGravatar Alexander Niebuhr 1-3/+6
2024-08-29chore: supress lintingGravatar Alexander Niebuhr 1-4/+6
2024-08-08update formatter config (#11640)Gravatar Darius 1-3/+3
* update formatter config * format --------- Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2024-02-27chore: import sort source code, exception for the `astro` package (#10242)Gravatar Emanuele Stoppa 1-2/+2
* 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-23Fix(node): Custom headers are not present in responses from standalone Node ↵Gravatar Furkan Erdem 1-0/+13
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-01-17[ci] formatGravatar Emanuele Stoppa 1-7/+7
2024-01-17Adapter enhancements (#9661)Gravatar Emanuele Stoppa 1-53/+20
* 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>
2023-11-28Support immutable cache headers for _astro assets (#9125)Gravatar Matthew Phillips 1-0/+3
* 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-09-13config: migrate us to moduleResolution: 'node16' (#8519)Gravatar Erika 1-1/+1
2023-08-28[ci] formatGravatar ematipico 1-1/+1
2023-08-28refactor: use new Astro internals (#8254)Gravatar Emanuele Stoppa 1-6/+6
* refactor: use new Astro internals * chore: update tests --------- Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2023-08-18fix(node): delegate preview's not found and error handling to core/app (#8141)Gravatar Arsh 1-9/+1
* 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-10[ci] formatGravatar natemoo-re 1-4/+5
2023-08-10Support `--host` for Node adapter preview (#6928)Gravatar Jerry_wu 1-2/+10
* 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-07-18nit: use `node:` prefix everywhere (#7692)Gravatar Erika 1-2/+2
* nit: use `node:` prefix everywhere * nit: fs/promises too * test: workaround issue in node builtin detection
2023-03-10fix: Enforce the usage of type imports when possible (#6502)Gravatar Erika 1-1/+1
2022-12-08[ci] formatGravatar natemoo-re 1-1/+3
2022-12-08Node: better serverEntrypoint error (#5560)Gravatar Nate Moore 1-4/+8
* fix(node): better entrypoint error * fix(node): surface start errors during preview Co-authored-by: Nate Moore <nate@astro.build>
2022-11-07[ci] formatGravatar matthewp 1-4/+12
2022-11-07Handle `base` in adapters (#5290)Gravatar Matthew Phillips 1-1/+10
* Handle `base` in adapters * Use removeBase in the test adapter * Update packages/integrations/node/src/preview.ts Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com> * Update packages/integrations/cloudflare/src/server.advanced.ts Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com> * Include the subpath for links Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2022-10-12[ci] formatGravatar matthewp 1-20/+20
2022-10-12Node.js standalone mode + support for astro preview (#5056)Gravatar Matthew Phillips 1-0/+54
* 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>