simonw/datasette-lite

Move this to lite.datasette.io

Closed this issue · 7 comments

It deserves a vanity subdomain!

I pointed lite.datasette.io at CNAME simonw.github.io - following the instructions on https://docs.github.com/en/pages/configuring-a-custom-domain-for-your-github-pages-site/about-custom-domains-and-github-pages#using-a-subdomain-for-your-github-pages-site

Then I used https://github.com/simonw/datasette-lite/settings/pages to add a custom domain - which produced this commit for me a2077bd

It took a few minutes for the Lets Encrypt certificate to issue, but now this works:

https://lite.datasette.io/

http://lite.datasette.io/ without the https works too - can I get that to redirect?

Yes:

image

Remaining challenge is analytics, which are wired up for simonw.github.io and not for lite.datasette.io.

I didn't ask it to, but it looks like GitHub has set up the redirects for me - and they work:

https://simonw.github.io/datasette-lite/?url=https://latest.datasette.io/fixtures.db redirects to https://lite.datasette.io/?url=https://latest.datasette.io/fixtures.db

Annoyingly fragment IDs in those URLs won't be preserved. I'm going to tolerate that because the project has only been live for a few hours.

Updated the links in my blog entry too: https://simonwillison.net/2022/May/4/datasette-lite/