Auto Trigger Deploys on Netlify

In order to keep a consistent schedule for publishing my blog posts, I wanted to automate the process of deploying my Hugo Static Site on Netlify. By using IFTTT, I was able to set up an auto-trigger that deploys my site every morning. This method can be used not only on Netlify, but also on other providers that offer webhooks for manual deploys. Consistency is key for maintaining momentum in my work....

How to Set Up \"Cloud Cron Jobs\" using Netlify Scheduled Functions

Discover how to set up Netlify Scheduled Functions for your development needs. Netlify Scheduled Functions provide the ability to perform various tasks. Follow these steps to set them up: Create a serverless function in netlify/functions directory in your repository. For example, you can create a file named test.js: exports.handler = (event, context) => { // do something return { statusCode: 200 }; } Open or create the netlify.toml file in your repository and configure the frequency at which you want the Netlify Scheduled Function to run....

How to Use Netlify Edge Functions: A Step-by-Step Guide

Netlify Edge Functions are a powerful feature offered by Netlify, the popular hosting platform. While Netlify is known for static hosting, Edge Functions enable you to perform dynamic actions on your website. These functions allow you to implement features like geolocation, localization, A/B testing, redirects, and much more. Similar to Netlify Serverless Functions, Edge Functions run on the Netlify Edge, which means they are closer to the user and run on multiple CDN locations....

How to Utilize ES Modules in Netlify Functions

ES modules, which provide a modular approach for organizing and loading JavaScript code, can be used in Netlify Functions to enhance the functionality and maintainability of serverless functions. This guide will walk you through the steps to enable ES modules in Netlify Functions. To begin, make sure you have a package.json file at the root level of your repository. Open the package.json file and add the following line: "type": "module" This line informs the Node....

Moving Blog Hosting to Cloudflare Pages: Reduced Costs and Improved Performance

As mentioned in my recent YouTube video, I made the decision last week to migrate my blog from Netlify to Cloudflare Pages. The main reason behind this change was the growing concern of bandwidth costs. Starting from July last year, I found myself being billed by Netlify on a monthly basis. While I appreciate the service they provide, the extra bandwidth charges were becoming a significant expense. In total, I had spent $340 to keep my blog running smoothly....

Netlify Lambda Functions: A Tutorial for Adding Dynamic Processing to JAMstack Sites

In my previous tutorial on Netlify, I discussed how to use it to host websites, including this blog. Netlify is a great platform for running sites, especially those built with Hugo, as it enables us to have a 100% JAMstack (JavaScript, APIs, and Markup) implementation. What makes JAMstack even more exciting is its ability to handle dynamic functionality. And a major player in enabling dynamic capabilities in JAMstack sites is Netlify Lambda Functions....

The stack I use to run this blog

In this post, I will describe the technologies and tools I use to run my blog. From the site platform to hosting, and even my workflow for posting articles, I’ll cover it all. The site platform This blog is built using Astro, a static site framework. While I previously used Hugo, I found that I enjoy creating user interfaces with JSX more. Astro, like Hugo, generates fast pages that can be easily deployed on platforms like Netlify or Cloudflare Pages....