summaryrefslogtreecommitdiff
path: root/packages/integrations/vercel/src (follow)
AgeCommit message (Collapse)AuthorFilesLines
2024-04-12fix(vercel): Fix srcset generation not working on Vercel (#10756)Gravatar Erika 2-1/+5
* fix(vercel): Fix `srcset` generation not working on Vercel * chore: changeset * fix: remove densities and widths from the HTML attributes * nit: better changeset * nit: add formats
2024-04-03[ci] formatGravatar Jacob Lamb 1-8/+11
2024-04-03fix: update vercel node support status (#10611)Gravatar Jacob Lamb 1-5/+12
* Update adapter.ts * Create clever-houses-yawn.md * Update adapter.ts * Update adapter.ts * Update adapter.ts Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com> * Update .changeset/clever-houses-yawn.md Co-authored-by: Emanuele Stoppa <my.burning@gmail.com> --------- Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com> Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-04-01Move nft warnings behind verbose logging (#10609)Gravatar Matthew Phillips 1-2/+2
* Move nft warnings behind verbose logging * Update packages/integrations/vercel/src/lib/nft.ts Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com> * Update packages/integrations/vercel/src/lib/nft.ts Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com> --------- Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
2024-03-28feat: allow dynamic route segments in isr.exclude array (#10513)Gravatar TK 1-2/+35
* Allow dynamic route segments in isr.exclude array * copy over eslint-disable as well * add test * update test: slashes dont need to be escaped * update changeset --------- Co-authored-by: lilnasy <69170106+lilnasy@users.noreply.github.com>
2024-03-20[ci] formatGravatar Arsh 1-2/+4
2024-03-20deprecation(vercel): vercel-edge-middleware.js file (#10476)Gravatar Arsh 2-8/+16
* deprecation(vercel): `vercel-edge-middleware.js` file * add changeset * `Astro.locals.waitUntil()` -> `Astro.locals.vercel.edge.waitUntil()` * export edge locals interface
2024-02-27chore: import sort source code, exception for the `astro` package (#10242)Gravatar Emanuele Stoppa 6-21/+21
* 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-26Fix an issue where Vercel adapter may create functions for prerendered ↵Gravatar Ming-jun Lu 1-1/+3
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-23Fixes edge middleware calling nested routes (#10215)Gravatar Matthew Phillips 1-1/+1
2024-02-22Fix cssesc from breaking browser code (#10194)Gravatar Matthew Phillips 1-14/+0
* 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-13fix(vercel): trailing slash conflict (#10082)Gravatar Florian Lefebvre 1-0/+21
2024-02-07[ci] formatGravatar Arsh 1-3/+2
2024-02-07feat(vercel): middleware verification (#9987)Gravatar Arsh 3-15/+53
* 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[ci] formatGravatar Arsh 3-21/+23
2024-02-07feat(vercel): ISR (#9714)Gravatar Arsh 3-105/+158
* 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-02Revert "Provide better ignores for Vercel's file tracer (#9885)" (#9955)Gravatar Matthew Phillips 1-16/+1
* Revert "Provide better ignores for Vercel's file tracer (#9885)" This reverts commit d59737e227c95955d21177204ef2836b22038ecf. * Changeset
2024-01-31[ci] formatGravatar Matthew Phillips 1-4/+4
2024-01-31Provide better ignores for Vercel's file tracer (#9885)Gravatar Matthew Phillips 1-1/+16
* Provide better ignores for Vercel's file tracer * Improve the changeset
2024-01-31feat(i18n): domain support (#9143)Gravatar Emanuele Stoppa 1-0/+1
* 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-24fix(vercel): make Astro.cookies work again (#9809)Gravatar Arsh 1-1/+1
* addCookieHeaders * add changeset
2024-01-22[ci] formatGravatar Arsh 2-30/+38
2024-01-23fix(vercel): edge middleware (#9585)Gravatar Arsh 5-81/+125
* 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-17[ci] formatGravatar Emanuele Stoppa 1-5/+7
2024-01-17Adapter enhancements (#9661)Gravatar Emanuele Stoppa 3-272/+60
* 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-10[ci] formatGravatar Arsh 1-7/+11
2024-01-10fix(vercel): fallback to static 404.html (#9648)Gravatar Arsh 1-2/+13
2024-01-05[ci] formatGravatar Arsh 1-5/+9
2024-01-05fix(vercel): include 404.html as fallback in the static adapter (#9591)Gravatar Arsh 1-0/+5
* include 404.html as fallback * add changeset * include only when 404.astro exists * add test * route.component -> route.pathname
2024-01-04[ci] formatGravatar Arsh 2-4/+4
2024-01-04chore(vercel): deprecate `speedInsights` (#9598)Gravatar Arsh 2-1/+14
* deprecate speedInsights config * add changeset
2023-12-29fix(vercel): prevent build failure with node 21 (#9550)Gravatar Arsh 1-7/+7
* fix(vercel): prevent build failure with node 21 * add changeset
2023-12-27[ci] formatGravatar Houston (Bot) 2-4/+4
2023-12-13chore(vercel): Add beta option for status (#9413)Gravatar Jacob Lamb 1-2/+9
* 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-12fix(vercel): handle dots in source path for redirects (#9289)Gravatar Arsh 1-2/+2
* add fix * add test * add changeset
2023-12-08[ci] formatGravatar Arsh 1-13/+13
2023-12-08fix(vercel): clear artifacts from redirects (#9287)Gravatar Arsh 1-2/+1
2023-12-07Allow async functions in the Vercel edge middleware integration (#9334)Gravatar Geoffrey Casper 1-1/+1
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-02Remove remaining deprecated APIs (#9263)Gravatar Bjorn Lu 1-18/+0
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-11-29Switch `app.render` signature (#9199)Gravatar Arsh 1-1/+1
* 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-24Remove vercel deprecated analytics option (#9184)Gravatar Bjorn Lu 2-30/+7
2023-11-07feat(vercel): streaming (#8879)Gravatar Arsh 1-1/+2
2023-10-24Prevent Vercel serverless generate static redirect pages (#8896)Gravatar Bjorn Lu 1-0/+1
2023-10-23[ci] formatGravatar ematipico 1-15/+17
2023-10-23feat(vercel): maxDuration config (#8867)Gravatar Arsh 1-42/+109
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-09-18fix: Vercel serverless adapter logs too much (#8581)Gravatar Rishi Raj Jain 1-2/+13
2023-09-14Change functionPerRoute to false by default (#8546)Gravatar Matthew Phillips 1-1/+1
* Change functionPerRoute to false by default * Update test that depends on functionPerRoute * Update .changeset/cool-pianos-smell.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update .changeset/cool-pianos-smell.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update packages/integrations/vercel/README.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update packages/integrations/vercel/README.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update .changeset/cool-pianos-smell.md --------- Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-09-14[@astrojs/vercel] Individually enable Speed Insights and Web Analytics (#8021)Gravatar Chris 6-30/+132
* Individually enable Speed Insights and Web Analytics * Update pnpm-lock.yaml * Remove .only on tests * Fix build * Move `beforeSend` out of config * Address feedback from review * Update README.md * Add back the `analytics` property and add deprecation warning when used * Add migration guide for the deprecated `analytics` property * Update packages/integrations/vercel/README.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update README.md * Fix external dependency issue * Simplify plugin and reduce scope * Update .changeset/sixty-teachers-tap.md Co-authored-by: Emanuele Stoppa <my.burning@gmail.com> * Apply feedback from review * Move exposeEnv to speed-insights since it's only used there --------- Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> Co-authored-by: Matthew Phillips <matthew@skypack.dev> Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-09-13feat(vercel): Use Sharp in dev instead of Squoosh by default (#8445)Gravatar Erika 7-43/+119
* feat(vercel): Use Sharp in dev instead of Squoosh by default * fix(build): * nit: adjust with feedback * fix: imports * Update packages/integrations/vercel/README.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * docs: small change in other part of the README --------- Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-09-13config: migrate us to moduleResolution: 'node16' (#8519)Gravatar Erika 3-4/+4