summaryrefslogtreecommitdiff
path: root/packages/integrations/netlify/src (follow)
AgeCommit message (Collapse)AuthorFilesLines
2024-02-06feat(netlify): verification for edge middleware (#152)Gravatar Arsh 2-3/+18
* feat(netlify): verification for edge middleware * add changeset * remove unused folder
2024-02-01[ci] formatGravatar alexanderniebuhr 1-1/+4
2024-02-01fix(netlify): pre-rendered 404 pages aren't shown (#143)Gravatar Simon Knott 2-4/+12
2024-01-16updates to adapter internals (#130)Gravatar Tom Thumb 1-1/+1
2024-01-11fix(netlify): only cache GET/HEAD methods (#127)Gravatar Simon Knott 1-1/+3
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-01-03[ci] formatGravatar ematipico 1-3/+3
2024-01-03[netlify] allow opting out of Image CDN (#120)Gravatar Simon Knott 1-2/+14
* chore: add image CDN tests * feat: allow image cdn opt-out * write docs * add changeset * fix: put proper jsdoc values
2023-12-21chore: use Biome as linter (#111)Gravatar Emanuele Stoppa 3-10/+11
* chore: biome safe fixes * chore: biome unsafe fixes * chore: biome safe fixes * chore: biome unsafe fixes * chore: update script * chore: format * chore: turn off some eslint rule * small refactor * fix
2023-12-19[ci] formatGravatar ematipico 1-2/+4
2023-12-19fix: use fs read instead of JSON import (#105)Gravatar Simon Knott 1-2/+3
2023-12-17[ci] formatGravatar alexanderniebuhr 5-15/+19
2023-12-17feat(netlify): Netlify Adapter v4 (#84)Gravatar Simon Knott 12-598/+437
Co-authored-by: Matt Kane <m@mk.gg> Co-authored-by: Jacklyn <70537879+jacklyn-net@users.noreply.github.com> Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com> Co-authored-by: Emanuele Stoppa <602478+ematipico@users.noreply.github.com> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-11-30chore: use biome to sort imports (#77)Gravatar Emanuele Stoppa 3-5/+5
2023-10-16[ci] formatGravatar alexanderniebuhr 6-540/+486
2023-10-16[ci] formatGravatar alexanderniebuhr 7-480/+541
2023-10-15chore(netlify): fixes after migrationGravatar Matthew Phillips 2-0/+3
Co-authored-by: HiDeoo <494699+HiDeoo@users.noreply.github.com> Co-authored-by: Matthew Phillips <matthew@skypack.dev> Co-authored-by: Reuben Tier <64310361+TheOtterlord@users.noreply.github.com>
2023-09-25[ci] formatGravatar ematipico 1-8/+8
2023-09-25fix(netlify): bundle netlify functions as ESM to support top-level await (#8661)Gravatar Simon Knott 1-1/+11
2023-08-15Merge remote-tracking branch 'origin/main' into nextGravatar Emanuele Stoppa 1-1/+16
2023-08-11[ci] formatGravatar lilnasy 1-2/+6
2023-08-11Add Incremental Static Regeneration support for the Netlify's on-demand ↵Gravatar Arsh 1-1/+12
builders adapter (#7975) * feat(netlify): expose builders ttl as a local * add changeset * docs(netlify): caching using on-demand builders * reword readme section * Update packages/integrations/netlify/package.json Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com> * include builders-types.d.ts in the distribution * document caveat regarding query params * update changeset * mutation -> function * locals.netlify -> locals.runtime * update types and changeset * Apply suggestions from code review Co-authored-by: Elian ☕️ <hello@elian.codes> * Apply suggestions from code review Co-authored-by: Elian ☕️ <hello@elian.codes> --------- Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com> Co-authored-by: Elian ☕️ <hello@elian.codes>
2023-08-10Remove the Nelify Edge adapter (#8029)Gravatar Matthew Phillips 3-133/+0
2023-08-08feat: astro features (#7815)Gravatar Emanuele Stoppa 2-0/+20
2023-08-08feat: adapter features, deprecate astro configs (#7839)Gravatar Emanuele Stoppa 2-2/+12
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-01[ci] formatGravatar bluwy 1-1/+1
2023-08-01Refactor 404 and 500 approach (#7754)Gravatar Nate Moore 2-26/+12
* 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-26Prevent building .html files in hybrid mode (#7805)Gravatar Matthew Phillips 1-0/+1
* Prevent building .html files in hybrid mode * Adding a changeset
2023-07-20Fix organize-imports-cli with satisfies operator (#7727)Gravatar Bjorn Lu 1-1/+1
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-07-17[ci] formatGravatar ematipico 3-6/+6
2023-07-17feat(@astrojs/netlify): edge middleware support (#7632)Gravatar Emanuele Stoppa 5-105/+206
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com> Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
2023-07-13[ci] formatGravatar ematipico 1-2/+2
2023-07-13feat(@astrojs/netlify): add `build.split` support (#7615)Gravatar Emanuele Stoppa 4-15/+51
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2023-06-05[ci] formatGravatar matthewp 2-6/+8
2023-06-05Redirects (#7067)Gravatar Matthew Phillips 3-130/+37
* 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-17feat: hybrid output (#6991)Gravatar Happydev 2-2/+6
* 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-04-10Fix no edge functions deployed to netlify (#6793)Gravatar André Alves 1-1/+2
2023-04-06[ci] formatGravatar matthewp 1-4/+5
2023-04-06Use Deno API to set Astro.clientAddress (#6651)Gravatar Matthew Phillips 1-2/+5
* Use Deno API to set Astro.clientAddress * Add types
2023-03-20feat(all): Migrate to TypeScript 5.0 (#6579)Gravatar Erika 1-1/+1
2023-03-10fix: Enforce the usage of type imports when possible (#6502)Gravatar Erika 1-1/+1
2023-02-21Use .mjs extension when building for netlify edge and vercel serverless (#6317)Gravatar Bjorn Lu 1-1/+1
2023-02-21fix(cookies): Update Undici to 5.20 and fix cookies behaviour (#6323)Gravatar Erika 1-28/+5
* fix(cookies): Update Undici to 5.20 and fix cookies behaviour * chore: changeset
2023-01-27[ci] formatGravatar matthewp 2-2/+2
2023-01-27feat(@astrojs/netlify): Add on-demand builders Netlify functions (#5874)Gravatar Juan Miguel Guerrero 4-7/+14
* Add on-demand builders option * chore: add changeset * docs: add documentation in configuration section * Update packages/integrations/netlify/README.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update packages/integrations/netlify/README.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update packages/integrations/netlify/README.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update .changeset/twenty-pans-agree.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> --------- Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-01-23[ci] formatGravatar matthewp 1-23/+34
2023-01-23Support prerender in Netlify redirects (#5904)Gravatar Matthew Phillips 3-16/+104
* Support prerender in Netlify redirects * Updated sorting algorithm * Update packages/integrations/netlify/src/shared.ts Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com> Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2023-01-18[ci] formatGravatar natemoo-re 1-1/+0
2023-01-18fix(#5723): build prerendered pages with Netlify edge functions (#5885)Gravatar Nate Moore 1-15/+0
* fix(#5723): build prerendered pages with Netlify edge functions * chore: add changeset Co-authored-by: Nate Moore <nate@astro.build>