summaryrefslogtreecommitdiff
path: root/packages/integrations/vercel/src (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-09-07feat: pass our domains and remote config to the Vercel config (#8452)Gravatar Erika 3-15/+50
* 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-14/+13
2023-09-06fix: include route prefix in vercel func names, fix #8401 (#8408)Gravatar Slawek Kolodziej 1-6/+17
* 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-09-01fix(vercel): Don't output an error message for failing to resolve sharp (#8354)Gravatar Erika 1-0/+3
* fix(vercel): Don't output an error message for failing to resolve sharp * chore: changeset
2023-09-01[ci] formatGravatar ematipico 3-5/+4
2023-09-01fix(@astrojs/vercel): slowness and symbolic link (#8348)Gravatar Emanuele Stoppa 3-27/+58
2023-08-31fix(@astrojs/vercel): include astro feature map and adapter features to the ↵Gravatar Emanuele Stoppa 1-1/+17
static adapter (#8318)
2023-08-31Update Vercel warning verbiage (#8328)Gravatar Matthew Phillips 1-1/+3
* Update Vercel warning verbiage * Changeset and suggestion of functionPerRoute: false
2023-08-31fix(@astrojs/vercel): warn user when `functionPerRoute` is `true` (#8319)Gravatar Emanuele Stoppa 1-1/+6
2023-08-28refactor: use new Astro internals (#8254)Gravatar Emanuele Stoppa 1-5/+4
* refactor: use new Astro internals * chore: update tests --------- Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2023-08-28Vercel adapter default changes (#8239)Gravatar Matthew Phillips 2-1/+19
* 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-17Merge branch 'main' into nextGravatar Matthew Phillips 3-4/+4
2023-08-17feat(assets): support remote images (#7778)Gravatar Julien Barbay 3-4/+4
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> Co-authored-by: Princesseuh <princssdev@gmail.com> Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2023-08-16feat: unflag experimental.assets (#7921)Gravatar Erika 3-24/+3
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-08-15Merge remote-tracking branch 'origin/main' into nextGravatar Emanuele Stoppa 1-0/+3
2023-08-11[ci] formatGravatar matthewp 1-1/+1
2023-08-11Prevent Vercel NFT from scanning /dev (#8039)Gravatar Matthew Phillips 1-0/+3
* Prevent Vercel NFT from scanning /dev * Add a comment
2023-08-10Remove the Vercel Edge adapter (#8015)Gravatar Matthew Phillips 3-211/+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 2-0/+20
2023-08-08feat: adapter features, deprecate astro configs (#7839)Gravatar Emanuele Stoppa 1-2/+16
2023-08-08feat: remove webapi in favor of a smaller polyfill (#7840)Gravatar Erika 1-4/+2
* feat: remove webapi in favor of a smaller polyfill * test: remove old test * test: 🤦‍♀️ * chore: changeset
2023-08-08Remove support for Node 16 (#7780)Gravatar Erika 1-2/+3
2023-08-01feat: add cache headers to assets in Vercel adapter (#7729)Gravatar Hee 3-2/+24
* 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-08-01Refactor 404 and 500 approach (#7754)Gravatar Nate Moore 2-19/+8
* fix(app): refactor 404 and 500 approach * chore: refactor logic * fix: always treat error as page * test: migrate ssr-prerender-404 to node adapter * feat: merge original response metadata with error response * chore: update lockfile * chore: trigger ci * chore(lint): fix lint issue * fix: ensure merged request has proper status * fix(node): prerender test * chore: update test label * fix(node): improve 404 behavior in middleware mode * fix(vercel): improve 404 behavior * fix(netlify): improve 404 behavior * chore: update test labels * chore: force ci * chore: fix lint * fix: avoid infinite loops * test: fix failing test in Node 18 * chore: remove volta
2023-07-20[ci] formatGravatar natemoo-re 1-11/+23
2023-07-20fix(vercel): Switch to node 18 when local version is not supported (#7718)Gravatar Arsh 1-0/+19
* fix(vercel): switch to node 18 when needed * fix types, reword * reorder sentences * add changeset * fix(vercel): switch to node 18 when needed * add referencce to vercel documentation --------- Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-07-18[ci] formatGravatar Princesseuh 1-2/+1
2023-07-18nit: use `node:` prefix everywhere (#7692)Gravatar Erika 2-4/+4
* nit: use `node:` prefix everywhere * nit: fs/promises too * test: workaround issue in node builtin detection
2023-07-17Fix vercel build error when passing `includeFiles` (#7677)Gravatar Bjorn Lu 1-4/+6
2023-07-14[ci] formatGravatar natemoo-re 2-4/+4
2023-07-14fix(#7654): exclude @vercel/nft (#7659)Gravatar Nate Moore 2-0/+6
2023-07-12fix(@astrojs/vercel): improve file detection (#7621)Gravatar Emanuele Stoppa 1-1/+1
2023-07-05[ci] formatGravatar ematipico 3-4/+4
2023-07-05feat: vercel edge middleware support (#7532)Gravatar Emanuele Stoppa 5-8/+129
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-07-03feat: use typescript-eslint@v6's reworked configs (#7425)Gravatar Josh Goldberg ✨ 2-3/+3
2023-06-29[ci] formatGravatar matthewp 1-9/+5
2023-06-29Split support in the Vercel Serverless adapter (#7514)Gravatar Matthew Phillips 2-28/+52
* 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 1-1/+1
2023-06-05Unflag hybrid output (#7260)Gravatar Nate Moore 2-4/+4
* feat(hybrid): unflag hybrid output * chore: cleanup rebase errors
2023-06-05[ci] formatGravatar matthewp 1-12/+9
2023-06-05Redirects (#7067)Gravatar Matthew Phillips 2-15/+44
* 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 2-4/+4
This reverts commit 6b03cc98e41825d14aa9a257494644f097807195.
2023-05-31feat(hybrid): unflag hybrid output (#7255)Gravatar Nate Moore 2-4/+4
2023-05-17[ci] formatGravatar matthewp 1-1/+1
2023-05-17feat: hybrid output (#6991)Gravatar Happydev 4-3/+9
* 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-17Add `edge-light` and `worker` to vercel edge bundling (#7103)Gravatar Bjorn Lu 1-0/+2
2023-05-17Build edge/worker runtime with webworker ssr target (#7101)Gravatar Bjorn Lu 1-1/+1
2023-05-15[ci] formatGravatar bluwy 3-3/+3
2023-05-15Inject analytics env (#6876)Gravatar Nathaniel Blackburn 4-0/+30
2023-05-02feat(vercel): Add support for image optimization API (#6845)Gravatar Erika 6-4/+319
* 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>