Tools, services and set-ups for web development and deploying code online.
Google Fonts might not be GDPR compliant. Here are two alternative options (hosted and self-hosted) you can use instead, and how to set them up on your website.
Written by Codemzy in Deploy on November 27th, 2024
Here's how I used Cloudflare functions to create a "report-uri" endpoint for my CSP policy. The Cloudflare worker gets the CSP violation report and logs it so I can review and react!
Written by Codemzy in Deploy on April 12th, 2024
Adding a custom subdomain to DigitalOcean Spaces can be a little tricky. Especially if you don't want to move your DNS or manage custom certificates. Here are a couple of workarounds I use.
Written by Codemzy in Deploy on July 31st, 2023
Should you organise your blog posts into categories, with each post belonging to one category - or tags, where each post can have multiple tags? I don't have the answer, but hopefully this post can help you decide the best way forward!
Written by Codemzy in Deploy on May 15th, 2023
If you are starting a new blog, taking 5 minutes to decide on the best URL structure can help future-proof your content. Here are some good (and not-so-good) blog URL structures I've used, and why I choose super-simple.
Written by Codemzy in Deploy on May 12th, 2023
I ran into a few issues setting up a ReactJS app on Cloudflare Pages because only part of my website was a SPA (single-page application). Here's how I fixed routing and got my SPA to work.
Written by Codemzy in Deploy on March 29th, 2023
Have you added a custom domain to your Cloudflare Pages site, but you can still access the site on `*.pages.dev`? Here's how I used Bulk Redirects to redirect the Cloudflare Pages URL to my custom domain.
Written by Codemzy in Deploy on March 17th, 2023
How can you schedule static site builds? Run a cron job! And in Cloudflare, you don't even need to use any outside services to do it - you can trigger a worker to run on schedule, whenever you need!
Written by Codemzy in Deploy on March 14th, 2023
When you deploy a new version of your single-page application (like ReactJS), you want your users to see it, right? But what if they have an old version open? Here's how you can force your user's browsers to refresh after releasing a new version of your web app.
Written by Codemzy in Deploy on September 16th, 2022
After discovering link cloaking (and various services that manage, cloak and shorten affiliate links), I thought it would be pretty easy to set something basic up in Netlify for a static site. It was, and here's how you can do it!
Written by Codemzy in Deploy on June 27th, 2022
Need a simple place to store content instead of pushing it to your git repository? Need a non-coder to be able to add content? Dropbox might be the answer!
Written by Codemzy in Deploy on June 13th, 2022
Do you wonder how to connect your website to your server? Or maybe you're wondering about CDNs, API requests and serverless functions? And what's a static site? Here are 3 ways to connect the front-end of your website to the back-end.
Written by Codemzy in Deploy on April 27th, 2022
On static sites, your back end is totally separate from your front end. But you might be leaking information with your API calls. Here's how you can use Netlify redirects to reverse proxy to your back end services (and why you might want to).
Written by Codemzy in Deploy on November 24th, 2021
Static sites means static content, right? But if you run a blog, you might want to schedule content to maximise your productivity and consistency. Let's look at how you can schedule your posts for the future by adding dates and updating your build process.
Written by Codemzy in Deploy on November 10th, 2021
All the best static site providers give you continuous deployment from Git. But what about your images files? Should you store them in your Git repository too? Noooo! Don't do it! Here are some solutions for image storage without bloating your repository.
Written by Codemzy in Deploy on November 3rd, 2021
How can you schedule static site builds? Run a cron job! But if you don't have a server, how do you run a cron job? Do you need an extra tool or service? If you already store your code on GitHub, you have everything you need. Say hello to GitHub Actions.
Written by Codemzy in Deploy on October 28th, 2021
I recently updated a bunch of npm packages on one of my websites and got rid of over 30 vulnerabilities. I was over the moon - until my Netlify builds started failing. And the problem was my Node version. Here's how I found the problem and fixed it.
Written by Codemzy in Deploy on October 21st, 2021