Adding a CORS policy to an S3 bucket
Amazon S3 buckets that are configured to work as public websites can support CORS, allowing assets such as JavaScript modules to be loaded by JavaS...
511 words
|
3 minutes
Ensure labels exist in a GitHub repository
I wanted to ensure that when [this template repository](https://github.com/simonw/action-transcription) was used to create a new repo that repo wou...
151 words
|
1 minute
Registering new Datasette plugin hooks by defining them in other plugins
I'm experimenting with a Datasette plugin that itself adds new plugin hooks which other plugins can then interact with.
137 words
|
1 minute
Configuring auto-update for an Electron app
This is _almost_ really simple. I used [electron/update-electron-app](https://github.com/electron/update-electron-app) for it, the instructions for...
355 words
|
2 minutes
Setting cache-control: max-age=31536000 with a Cloudflare Transform Rule
I ran https://simonwillison.net/ through [PageSpeed Insights](https://pagespeed.web.dev/) and it warned me that my static assets were not being ser...
607 words
|
3 minutes
Redirecting a domain using Cloudflare Pages
I wanted to redirect https://global-power-plants.datasettes.com/ to https://datasette.io/ - I decided to spin up a Cloudflare Pages site to do the ...
652 words
|
3 minutes
Limited JSON API for Google searches using Programmable Search Engine
I figured out how to use a JSON API to run a very limited Google search today in a legit, non-screen-scraper way.
508 words
|
3 minutes
Loading lit from Skypack
[Lit 2](https://lit.dev/blog/2021-09-21-announcing-lit-2/) stable was released today, offering a tiny, feature-full framework for constructing web ...
100 words
|
1 minute