summaryrefslogtreecommitdiff
path: root/packages/integrations/netlify/src/integration-edge-functions.ts (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-08-10Remove the Nelify Edge adapter (#8029)Gravatar Matthew Phillips 1-98/+0
2023-08-08feat: astro features (#7815)Gravatar Emanuele Stoppa 1-0/+10
2023-07-17feat(@astrojs/netlify): edge middleware support (#7632)Gravatar Emanuele Stoppa 1-101/+9
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com> Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
2023-07-13feat(@astrojs/netlify): add `build.split` support (#7615)Gravatar Emanuele Stoppa 1-1/+6
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2023-05-17feat: hybrid output (#6991)Gravatar Happydev 1-1/+3
* 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-02-21Use .mjs extension when building for netlify edge and vercel serverless (#6317)Gravatar Bjorn Lu 1-1/+1
2023-01-27feat(@astrojs/netlify): Add on-demand builders Netlify functions (#5874)Gravatar Juan Miguel Guerrero 1-1/+1
* 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-23Support prerender in Netlify redirects (#5904)Gravatar Matthew Phillips 1-1/+1
* 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>
2023-01-09Output assets to `_astro` directory (#5772)Gravatar Nate Moore 1-1/+2
* WIP: emit assets to _astro * chore: better _astro handling * refactor: emit server assets to `chunks/` * chore: update /asset tests * test: add explicit build output tests * fix: update image to emit to configured asset path * chore: update changeset * chore: update image tests * chore: update image tests * test: update css test * test: update bundling test * test: update tests * 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> * chore: add clarifying comment Co-authored-by: Nate Moore <nate@astro.build> Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2023-01-05feat: change path into assets (#5584)Gravatar wulinsheng123 1-1/+1
* feat: change path * feat: fix bug #5502 * fix: astro fix to patch * feat: change to major * chore: update changelog * fix: change entryFileNames into assets folder * fix: fix error message in test Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2023-01-03Remove deprecated APIs (#5707)Gravatar Bjorn Lu 1-11/+0
* Remove deprecated Astro globals * Remove deprecated hook param * Fix test * Add changeset * Add TODO
2022-11-08Support environment variables in Cloudflare and Netlify Edge functions (#5301)Gravatar Bjorn Lu 1-1/+1
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-10-12[ci] formatGravatar matthewp 1-1/+1
2022-10-12Node.js standalone mode + support for astro preview (#5056)Gravatar Matthew Phillips 1-17/+29
* wip * Deprecate buildConfig and move to config.build * Implement the standalone server * Stay backwards compat * Add changesets * correctly merge URLs * Get config earlier * update node tests * Return the preview server * update remaining tests * swap usage and config ordering * Update packages/astro/src/@types/astro.ts Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update .changeset/metal-pumas-walk.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update .changeset/metal-pumas-walk.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update .changeset/stupid-points-refuse.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update .changeset/stupid-points-refuse.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Link to build.server config Co-authored-by: Fred K. Schott <fkschott@gmail.com> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-09-12Fix route validation for Netlify Edge (#4722)Gravatar Ben Holmes 1-1/+4
* fix: serialize route pattern for Netlify edge Co-authored-by: Jackie Macharia <jackiewmacharia> * chore: changeset
2022-07-25[ci] formatastro@0.0.0-rc-20220725043302@astrojs/vue@0.0.0-rc-20220725043302@astrojs/vercel@0.0.0-rc-20220725043302@astrojs/tailwind@0.0.0-rc-20220725043302@astrojs/svelte@0.0.0-rc-20220725043302@astrojs/sitemap@0.0.0-rc-20220725043302@astrojs/prefetch@0.0.0-rc-20220725043302@astrojs/partytown@0.0.0-rc-20220725043302@astrojs/node@0.0.0-rc-20220725043302@astrojs/netlify@0.0.0-rc-20220725043302@astrojs/mdx@0.0.0-rc-20220725043302@astrojs/markdown-remark@0.0.0-rc-20220725043302@astrojs/markdown-component@0.0.0-rc-20220725043302@astrojs/lit@0.0.0-rc-20220725043302@astrojs/image@0.0.0-rc-20220725043302@astrojs/deno@0.0.0-rc-20220725043302@astrojs/cloudflare@0.0.0-rc-20220725043302Gravatar FredKSchott 1-3/+5
2022-07-25Add the `output` option (#4015)Gravatar Matthew Phillips 1-0/+5
* Start of work on astroConfig.mode === 'server' * Add tests and more * adapter -> deploy in some places * Add fallback for `adapter` config * Update more tests * Update image tests * Fix clientAddress test * Updates based on PR review * Add a changeset * Update integrations tests + readme * Oops * Remove old option * Rename `mode` to `output` * Update Node adapter test * Update test * fred pass * fred pass * fred pass * fix test Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2022-06-27[ci] formatGravatar bholmesdev 1-1/+1
2022-06-27Refactor: remove Deno shim to esbuild "banner" (#3734)Gravatar Ben Holmes 1-0/+8
* refactor: remove Deno shim to esbuild "banner" * refactor: move shim to const * refactor: add shim to netlify edge * chore: changeset
2022-06-21[ci] formatGravatar matthewp 1-6/+6
2022-06-21Support re-exporting astro components containing client components (#3625)Gravatar Matthew Phillips 1-1/+21
* Support re-exporting astro components containing client components * Include metadata for markdown too * Fix ssr, probably * Inject post-build * Remove tagName custom element test * Allows using the constructor for lit elements * Fix hoisted script scanning * Pass through plugin context * Get edge functions working in the edge tests * Fix types for the edge function integration * Upgrade the compiler * Upgrade compiler version * Better release notes for lit * Update .changeset/unlucky-hairs-camp.md Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> * Properly test that the draft was not rendered * Prevent from rendering draft posts * Add a changeset about the build perf improvement. Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-06-07[ci] formatGravatar matthewp 1-5/+6
2022-06-07Allow dynamic imports when using Netlify Edge Functions (#3535)Gravatar Matthew Phillips 1-2/+33
* Allow dynamic imports when using Netlify Edge Functions * Update deno test script and changeset
2022-06-06[ci] formatfix/map-file-404-logsGravatar FredKSchott 1-2/+2
2022-06-02fix: alias astro to @types/astro (#3503)Gravatar William Tetlow 1-2/+11
* fix: alias astro to @types/astro * fix: handle resolve.alias being array * chore: add integrations patch to changeset * chore: remove empty file
2022-05-16Netlify outdirectory (#3377)Gravatar Sarah Etter 1-2/+2
* Change dist directory, and functions out directory * Add changeset * update docs * Fix changeset
2022-05-11Fix/netlify edge redirects (#3342)Gravatar Pascal Schilp 1-0/+2
* fix: create redirects file for netlify edge adapter * chore: changeset * chore: distinguish between edge/regular
2022-04-21[ci] formatGravatar matthewp 1-1/+1
2022-04-21Fixes using React.lazy and Suspense (#3160)Gravatar Matthew Phillips 1-0/+4
* Revert "Revert "Fixes using React.lazy and Suspense"" This reverts commit e621c2f7d3844e950168f4198e4dd1c6f43031d0. * Adds a changeset * Fix ts errors * Remove netlify metadata folder
2022-04-20Revert "Fixes using React.lazy and Suspense"Gravatar Matthew Phillips 1-3/+0
This reverts commit 700d4f9649b72e98a56586a480e6d3c413cf45f1.
2022-04-20Fixes using React.lazy and SuspenseGravatar unknown 1-0/+3
2022-04-19[ci] formatGravatar matthewp 1-1/+1
2022-04-19Adjustments for Netlify Edge Functions (#3150)Gravatar Matthew Phillips 1-3/+7
* Adjustments for Netlify Edge Functions * Adds a changeset
2022-04-19[ci] formatGravatar matthewp 1-25/+24
2022-04-19Netlify Edge function support (#3148)Gravatar Matthew Phillips 1-0/+98
* Netlify Edge function support * Update readme with edge function information * Adds a changeset * Disable running edge function test in CI for now