Skip to content

Commit

Permalink
feat!(netlify): remove netlify_builder preset
Browse files Browse the repository at this point in the history
There shouldn't be any reason to use this anymore, with ISR implemented
via SWR.
  • Loading branch information
serhalp committed May 1, 2024
1 parent d22269c commit 2fc17ff
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 76 deletions.
8 changes: 0 additions & 8 deletions docs/2.deploy/20.providers/netlify.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,6 @@ Nitro output can directly run the server at the edge. Closer to your users.
Make sure the publish directory is set to `dist` when creating a new project.
::

## On-demand builders

**Preset:** `netlify_builder`

On-demand Builders are serverless functions used to generate web content as needed that’s automatically cached on Netlify’s Edge CDN. They enable you to build pages for your site when a user visits them for the first time and then cache them at the edge for subsequent visits.

:read-more{title="Netlify On-demand Builders" to="https://docs.netlify.com/configure-builds/on-demand-builders/"}

## Custom deploy configuration

You can provide additional deploy configuration using the `netlify` key inside `nitro.config`. It will be merged with built-in auto-generated config. Currently the only supported value is `images.remote_images`, for [configuring Netlify Image CDN](https://docs.netlify.com/image-cdn/create-integration/).
2 changes: 1 addition & 1 deletion src/presets/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export { digitalOcean } from "./digital-ocean";
export { firebase } from "./firebase";
export { heroku } from "./heroku";
export { edgio } from "./edgio";
export { netlify, netlifyBuilder, netlifyEdge, netlifyStatic } from "./netlify";
export { netlify, netlifyEdge, netlifyStatic } from "./netlify";
export { nitroDev } from "./nitro-dev";
export { nitroPrerender } from "./nitro-prerender";
export { cli } from "./node-cli";
Expand Down
8 changes: 0 additions & 8 deletions src/presets/netlify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,6 @@ export const netlify = defineNitroPreset({
"utf8"
);
}

// Netlify builder
export const netlifyBuilder = defineNitroPreset({
extends: "netlify",
entry: "#internal/nitro/entries/netlify-builder",
hooks: {
"rollup:before": (nitro: Nitro) => {
deprecateSWR(nitro);
},
},
});
Expand Down
4 changes: 0 additions & 4 deletions src/runtime/entries/netlify-builder.ts

This file was deleted.

55 changes: 0 additions & 55 deletions src/runtime/entries/netlify-lambda.ts

This file was deleted.

0 comments on commit 2fc17ff

Please sign in to comment.