Next month #Vercel invoice will be a disaster! Working on usage #optimisation. Still struggling with Data Cache Writes / Reads & Fast Origin Transfer. Not sure what happened here. #hosting #deployment #nextjs #middleware #edgefunctions
Next month #Vercel invoice will be a disaster! Working on usage #optimisation. Still struggling with Data Cache Writes / Reads & Fast Origin Transfer. Not sure what happened here. #hosting #deployment #nextjs #middleware #edgefunctions
I don't blog much but I thought a post on how I now handle #SSR and #CSR theme switching was worth it. https://jamesbasoo.com/blog/theme-switching-ssr-csr/ #JavaScript #TypeScript #EdgeFunctions
I finally fixed the un-themed flash on my site using #Netlify #EdgeFunctions and a theme cookie. I also added a basic fade view transition too, although it seems a bit hit and miss.
I do wonder whether there's a cleaner way of preventing the function running on non-HTML files though. At least locally it seemed to be running on every request.
```
export const config: Config = {
path: "/*",
excludedPath: [
"/*.css",
"/*.js",
"/*.svg",
...
]
}
```
With #Hono, I can make my own link shortener, a redirector in about 30 lines of code. Plus, it very lightweight and almost costs nothing.
See it in action: https://aka.mrwillcom.com
This is hosted on #Vercel's #EdgeFunctions, with visits tracking data stored in #Redis on #Upstash.
My latest blog post, Creating an OG image using React and Netlify Edge Functions just dropped. Maybe you'll find it helpful.
https://dev.to/opensauced/creating-an-og-image-using-react-and-netlify-edge-functions-563a #reactjs #edgefunctions
A Service is a modular piece of edge-enabled software that runs on (and utilizes the features of) Fleek Network.
In this guide, we will explain what services are, how they work, and walk through a few examples of how to use them in your tech stack
https://blog.fleek.network/post/fleek-network-developer-guide-services/
#fleek #fleekNetwork #ipfs #dweb #webDev #distributed #programming #developer #web #cdn #edgeFunctions #serverless #paas
For anyone wishing to share their toots on their static site: edge functions are a great way to transform the content of a page at request time.
Hereโs how you can use the public #mastodon api: https://khendrikse.netlify.app/blog/add-mastodon-toots-to-a-static-page-using-edge-functions/