summaryrefslogtreecommitdiff
path: root/packages/integrations/vercel/test (follow)
AgeCommit message (Collapse)AuthorFilesLines
2024-08-30chore: move node and vercel to adapters repo (#11866)Gravatar Alexander Niebuhr 111-1486/+0
2024-08-28Remove lingering env.d.ts files (#11852)Gravatar Bjorn Lu 1-1/+0
2024-08-13fix(deps): update all non-major dependencies (#11674)Gravatar renovate[bot] 1-2/+2
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-08-08update formatter config (#11640)Gravatar Darius 9-16/+16
* update formatter config * format --------- Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2024-07-18[ci] formatGravatar Matthew Phillips 1-8/+6
2024-07-18Fix Server Islands in Vercel (#11491)Gravatar Matthew Phillips 5-0/+62
* Fix Server Islands in Vercel * Add a changeset * Get server islands pattern from the segments * Move getPattern so it can be used at runtime * Fix build
2024-06-17Refactor prerendering chunk handling (#11245)Gravatar Bjorn Lu 1-1/+1
2024-06-11[ci] formatGravatar Matthew Phillips 1-1/+4
2024-06-11In Vercel Edge, include cookies set by Astro.cookies.set (#11227)Gravatar Matthew Phillips 2-0/+10
2024-05-08feat(vercel): skew protection (#10761)Gravatar Emanuele Stoppa 1-72/+0
* feat(vercel): skew protection * feat(vercel): skew protection
2024-04-20Update major deps (#10823)Gravatar Bjorn Lu 1-12/+0
2024-04-02chore: remove console.log from test (#10653)Gravatar Arsh 1-1/+0
2024-04-02[ci] update lockfile (#10551)Gravatar Houston (Bot) 1-0/+2
Co-authored-by: matthewp <matthewp@users.noreply.github.com> Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-03-28[ci] formatGravatar TK 1-2/+2
2024-03-28feat: allow dynamic route segments in isr.exclude array (#10513)Gravatar TK 3-1/+17
* 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-26[ci] formatGravatar Simon Knott 1-5/+2
2024-03-26fix: ensure outDir doesn't lead to bundlers bloating Lambda size (#10550)Gravatar Simon Knott 1-0/+12
* fix: ensure outDir doesn't lead to bundlers bloating Lambda size * add changeset * Update packages/astro/src/assets/vite-plugin-assets.ts Co-authored-by: Emanuele Stoppa <my.burning@gmail.com> --------- Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-02-26Fix an issue where Vercel adapter may create functions for prerendered ↵Gravatar Ming-jun Lu 2-1/+18
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-22chore: import sorting for test folder and e2e folder (#10190)Gravatar Emanuele Stoppa 17-17/+17
2024-02-21chore: use biome to sort imports - only test files (#10180)Gravatar Emanuele Stoppa 10-10/+10
* 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-16chore: move `nodetest.js` to `test.js` (#10142)Gravatar Emanuele Stoppa 1-13/+15
* chore: move `nodetest.js` to `test.js` * chore: move `nodetest.js` to `test.js` * remove script
2024-02-13[ci] formatGravatar Ming-jun Lu 2-3/+6
2024-02-13chore(@astrojs/vercel): migrate tests to `node:test` (#10010)Gravatar Ming-jun Lu 16-79/+97
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-02-07[ci] formatGravatar Arsh 1-28/+26
2024-02-07feat(vercel): ISR (#9714)Gravatar Arsh 5-0/+89
* 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-01-22[ci] formatGravatar Arsh 1-7/+4
2024-01-23fix(vercel): edge middleware (#9585)Gravatar Arsh 3-3/+31
* 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-10fix(vercel): fallback to static 404.html (#9648)Gravatar Arsh 7-1/+60
2024-01-05[ci] formatGravatar Arsh 1-4/+2
2024-01-05fix(vercel): include 404.html as fallback in the static adapter (#9591)Gravatar Arsh 6-0/+65
* include 404.html as fallback * add changeset * include only when 404.astro exists * add test * route.component -> route.pathname
2023-12-12fix(vercel): handle dots in source path for redirects (#9289)Gravatar Arsh 1-0/+10
* add fix * add test * add changeset
2023-12-08fix(vercel): clear artifacts from redirects (#9287)Gravatar Arsh 1-5/+5
2023-11-07[ci] formatGravatar lilnasy 1-2/+2
2023-11-07feat(vercel): streaming (#8879)Gravatar Arsh 6-7/+62
2023-10-24Prevent Vercel serverless generate static redirect pages (#8896)Gravatar Bjorn Lu 5-0/+52
2023-10-23[ci] formatGravatar ematipico 1-12/+14
2023-10-23feat(vercel): maxDuration config (#8867)Gravatar Arsh 5-0/+54
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-10-10chore: removed adapters cleanup (#8726)Gravatar Arsh 1-1/+1
* update ci, readme, comments, remote workspaces * fix hosted test fixture * keep adapter config typedocs
2023-09-22nit: optimize images (#8629)Gravatar Erika 3-183/+1
2023-09-14Change functionPerRoute to false by default (#8546)Gravatar Matthew Phillips 1-0/+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 14-0/+176
* 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 4-3/+207
* 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-07feat: pass our domains and remote config to the Vercel config (#8452)Gravatar Erika 2-1/+12
* feat: pass our domains and remote config to Vercel'S * chore: changeset * test: update test to test for this * docs: update README
2023-09-06[ci] formatGravatar ematipico 1-2/+5
2023-09-06fix: include route prefix in vercel func names, fix #8401 (#8408)Gravatar Slawek Kolodziej 7-0/+73
* fix: include route prefix in vercel func names * chore: add changeset * chore: update pnpm lockfile * refactor: simplify logic that generates vercel func names * fix: properly remove entryFile prefix from func name * refactor: change how vercel function names are generated --------- Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-30fix(ssr): inline middleware during the build, not rely on file system (#8300)Gravatar Emanuele Stoppa 1-1/+1
* fix(ssr): inline middleware during the build, not rely on file system * feedback * chore: fix lint --------- Co-authored-by: Nate Moore <nate@astro.build> Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-28Vercel adapter default changes (#8239)Gravatar Matthew Phillips 1-1/+1
* Vercel adapter default changes * Update .changeset/silly-dolphins-try.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Fix tests * chore: correctly export `pageModule` when using `functionPerRoute` * Update .changeset/silly-dolphins-try.md Co-authored-by: Emanuele Stoppa <my.burning@gmail.com> * Update .changeset/silly-dolphins-try.md Co-authored-by: Emanuele Stoppa <my.burning@gmail.com> * Make throw be the entrypoint --------- Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-08-16feat: unflag experimental.assets (#7921)Gravatar Erika 5-15/+12
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-08-10Remove the Vercel Edge adapter (#8015)Gravatar Matthew Phillips 1-15/+0
* Remove the Vercel Edge adapter * Update tests * Update .changeset/plenty-keys-add.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Show enabling edge middleware --------- Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-08-08feat: astro features (#7815)Gravatar Emanuele Stoppa 1-1/+1