summaryrefslogtreecommitdiff
path: root/packages/integrations/vercel/test (follow)
AgeCommit message (Collapse)AuthorFilesLines
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
2023-08-08feat: adapter features, deprecate astro configs (#7839)Gravatar Emanuele Stoppa 8-15/+46
2023-08-03Use workspace version for Vercel testGravatar Matthew Phillips 1-2/+2
2023-08-01[ci] formatGravatar natemoo-re 1-1/+1
2023-08-01feat: add cache headers to assets in Vercel adapter (#7729)Gravatar Hee 5-1/+106
* feat: cache assets in Vercel adapter * Update tidy-tips-doubt.md * chore: update lockfile * Update packages/integrations/vercel/test/static-assets.test.js * Update packages/integrations/vercel/test/static-assets.test.js * Update packages/integrations/vercel/test/static-assets.test.js * chore: update split test --------- Co-authored-by: Kid <44045911+kidonng@users.noreply.github.com> Co-authored-by: Nate Moore <nate@astro.build> Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-07-21test: add setup for Vercel / Netlify tests (#7716)Gravatar Erika 7-0/+46
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
2023-07-19Remove experimental flag for redirects config (#7686)Gravatar Matthew Phillips 1-3/+0
* Remove experimental flag for redirects config * Remove experimental from tests * Remove experimental CLI flag * Add changeset * Removing redirect test that is no longer relevant * Remove experimental label" * Update .changeset/dry-beers-grow.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update .changeset/dry-beers-grow.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Remove old function --------- Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-07-17Fix vercel build error when passing `includeFiles` (#7677)Gravatar Bjorn Lu 3-3/+15
2023-07-12fix(@astrojs/vercel): improve file detection (#7621)Gravatar Emanuele Stoppa 12-22/+96
2023-07-05feat: vercel edge middleware support (#7532)Gravatar Emanuele Stoppa 7-0/+102
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-06-29[ci] formatGravatar matthewp 1-3/+3
2023-06-29Split support in the Vercel Serverless adapter (#7514)Gravatar Matthew Phillips 5-0/+60
* start of vercel split support * Split Mode with the Vercel Adapter * Write routes into the config.json * Add a changeset * Add docs * Better changeset
2023-06-22Fix vercel redirects with trailingSlash always (#7447)Gravatar Bjorn Lu 2-1/+14
2023-06-13Use stub image service for tests (#7376)Gravatar Bjorn Lu 2-7/+8
2023-06-05Unflag hybrid output (#7260)Gravatar Nate Moore 1-3/+0
* feat(hybrid): unflag hybrid output * chore: cleanup rebase errors
2023-06-05[ci] formatGravatar matthewp 1-6/+6
2023-06-05Redirects (#7067)Gravatar Matthew Phillips 5-0/+110
* Redirects spike * Allow redirects in static mode * Support in Netlify as well * Adding a changeset * Rename file * Fix build problem * Refactor to be more modular * Fix location ref * Late test should only run in SSR * Support redirects in Netlify SSR configuration (#7167) * Implement support for dynamic routes in redirects (#7173) * Implement support for dynamic routes in redirects * Remove the .only * No need to special-case redirects in static build * Implement support for redirects config in the Vercel adapter (#7182) * Implement support for redirects config in the Vercel adapter * Remove unused condition * Move to a internal helper package * Add support for the object notation in redirects * Use status 308 for non-GET redirects (#7186) * Implement redirects in Cloudflare (#7198) * Implement redirects in Cloudflare * Fix build * Update tests b/c of new ordering * Debug issue * Use posix.join * Update packages/underscore-redirects/package.json Co-authored-by: Emanuele Stoppa <my.burning@gmail.com> * Update based on review comments * Update broken test --------- Co-authored-by: Emanuele Stoppa <my.burning@gmail.com> * Test that redirects can come from middleware (#7213) * Test that redirects can come from middleware * Allow non-promise returns for middleware * Implement priority (#7210) * Refactor * Fix netlify test ordering * Fix ordering again * Redirects: Allow preventing the output of the static HTML file (#7245) * Do a simple push for priority * Adding changesets * Put the implementation behind a flag. * Self review * Update .changeset/chatty-actors-stare.md Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> * Update packages/astro/src/@types/astro.ts Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> * Update packages/astro/src/@types/astro.ts Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> * Update packages/astro/src/@types/astro.ts Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> * Update packages/astro/src/@types/astro.ts Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> * Update docs on dynamic restrictions. * 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> * Code review changes * Document netlify static adapter * Update packages/astro/src/@types/astro.ts Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Slight reword * Update .changeset/twenty-suns-vanish.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Add a note about public/_redirects file * Update packages/astro/src/@types/astro.ts Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> --------- Co-authored-by: Emanuele Stoppa <my.burning@gmail.com> Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-05-31Revert "feat(hybrid): unflag hybrid output (#7255)" (#7259)Gravatar Nate Moore 1-0/+3
This reverts commit bc5d6ed39faf2f73eab161774bf66ebc5fd00db2.
2023-05-31feat(hybrid): unflag hybrid output (#7255)Gravatar Nate Moore 1-3/+0
2023-05-17[ci] formatGravatar matthewp 1-4/+4
2023-05-17feat: hybrid output (#6991)Gravatar Happydev 2-1/+23
* update config schema * adapt default route `prerender` value * adapt error message for hybrid output * core hybrid output support * add JSDocs for hybrid output * dev server hybrid output support * defer hybrid output check * update endpoint request warning * support `output=hybrid` in integrations * put constant variable out of for loop * revert: reapply back ssr plugin in ssr mode * change `prerender` option default * apply `prerender` by default in hybrid mode * simplfy conditional * update config schema * add `isHybridOutput` helper * more readable prerender condition * set default prerender value if no export is found * only add `pagesVirtualModuleId` ro rollup input in `output=static` * don't export vite plugin * remove unneeded check * don't prerender when it shouldn't * extract fallback `prerender` meta Extract the fallback `prerender` module meta out of the `scan` function. It shouldn't be its responsibility to handle that * pass missing argument to function * test: update cloudflare integration tests * test: update tests of vercel integration * test: update tests of node integration * test: update tests of netlify func integration * test: update tests of netlify edge integration * throw when `hybrid` mode is malconfigured * update node integraiton `output` warning * test(WIP): skip node prerendering tests for now * remove non-existant import * test: bring back prerendering tests * remove outdated comments * test: refactor test to support windows paths * remove outdated comments * apply sarah review Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * docs: `experiment.hybridOutput` jsodcs * test: prevent import from being cached * refactor: extract hybrid output check to function * add `hybrid` to output warning in adapter hooks * chore: changeset * add `.js` extension to import * chore: use spaces instead of tabs for gh formating * resolve merge conflict * chore: move test to another file for consitency --------- Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2023-05-02feat(vercel): Add support for image optimization API (#6845)Gravatar Erika 6-2/+86
* feat(vercel): Add support for image optimization API * chore: changeset * feat: implement image service * feat: dev service * feat: full local service * fix: move assets check to astro:config:done * feat: update with new settings * fix: remove unused param * test: add tsets * fix: rename to imageService * docs: add docs * Apply suggestions from code review Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * docs(vercel): Add Added In mentions --------- Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-02-21Use .mjs extension when building for netlify edge and vercel serverless (#6317)Gravatar Bjorn Lu 4-0/+46
2022-07-27[ci] formatGravatar matthewp 1-2/+1
2022-07-27Add errors to cloudflare/vercel adapters when no output config (#4068)Gravatar Matthew Phillips 5-0/+58