Netlify: Difference between revisions

From IndieWeb
m (sknebel added "no reasonable default spending limits: https://www.reddit.com/r/webdev/comments/1b14bty/netlify_just_sent_me_a_104k_bill_for_a_simple/" to "See Also")
(use common page section headings, How to, IndieWeb Examples)
 
Line 5: Line 5:
Netlify provides continuous deployment of static sites (example, built using [[hugo]], and provides hosting for those too. The condition is that all site content has to be purely '''static'''.. so no scripts running on their server.
Netlify provides continuous deployment of static sites (example, built using [[hugo]], and provides hosting for those too. The condition is that all site content has to be purely '''static'''.. so no scripts running on their server.


Here's a typical flow for deploying sites through Netlify:
Here's a typical flow for deploying sites through Netlify:


Line 28: Line 29:
* [https://github.com/CodeFoodPixels/netlify-plugin-webmentions netlify-plugin-webmentions] Netlify build plugin to send webmentions.
* [https://github.com/CodeFoodPixels/netlify-plugin-webmentions netlify-plugin-webmentions] Netlify build plugin to send webmentions.


== Netlify Users ==
== ==
 
* {{kaushalmodi}} uses [[GitLab]] + [[hugo]] + [[Netlify]] for his homepage.
* {{kaushalmodi}} uses [[GitLab]] + [[hugo]] + [[Netlify]] for his homepage.
* {{jgarber}} uses [[GitHub]], [[Jekyll]], and [[Netlify]] for hosting several static websites.
* {{jgarber}} uses [[GitHub]], [[Jekyll]], and [[Netlify]] for hosting several static websites.
Line 40: Line 40:


== See Also ==
== See Also ==
* [[Netlify CMS]]
* [[Netlify CMS]]
* https://www.netlify.com/docs/functions/ they now offer some kind of management layer for [[AWS Lambda]] functions.
* https://www.netlify.com/docs/functions/ they now offer some kind of management layer for [[AWS Lambda]] functions.
* Has a drag & drop way to setup hosting for a new website from a folder of static files that came from your [[SSG]] of choice: https://app.netlify.com/drop
* Has a drag & drop way to setup hosting for a new website from a folder of static files that came from your [[SSG]] of choice: https://app.netlify.com/drop
* no reasonable default spending limits: https://www.reddit.com/r/webdev/comments/1b14bty/netlify_just_sent_me_a_104k_bill_for_a_simple/
* no reasonable default spending limits: https://www.reddit.com/r/webdev/comments/1b14bty/netlify_just_sent_me_a_104k_bill_for_a_simple/

Latest revision as of 17:59, 1 July 2024


Netlify is a CDN/static hosting provider with integrated build service, useful for static site generators.

Netlify provides continuous deployment of static sites (example, built using hugo, and provides hosting for those too. The condition is that all site content has to be purely static.. so no scripts running on their server.

How to

Here's a typical flow for deploying sites through Netlify:

Assuming that the user has already linked their online git repo (like GitHub, GitLab, Bitbucket) with their Netlify account,

  1. User commits changes to the git repo holding the source of their static site.
  2. Netlify receive that commit ping, and triggers a fresh build of the user's site using that latest commit.
  3. Netlify deploys that site at the domain the user configured.

Limitations

As Netlify needs the served sites to be 100% static, they cannot run any script (PHP, etc.) to serve as an endpoint for Webmention, micropub, etc., endpoints for such Netlify-hosted sites need to be hosted separately somewhere else.

However, Netlify does offer a serverless functions platform called Functions which https://piperswe.me/ has written about using for Serverless Indieauth at https://piperswe.me/posts/serverless-indieauth/ (Archive). They also have an early-access feature to build individual pages on-demand for sites with large numbers of pages.

  Jamie Tanna has https://micropub-media-endpoint-proxy.netlify.com/ which is a service to allow uploading files directly to the media endpoint, which uses Netlify Functions for proxying the request to the user's media endpoint.

Related Tools

IndieWeb Examples

See Also