SwiftPackageIndex / SwiftPackageIndex-Server

The Swift Package Index is the place to find Swift packages!
https://swiftpackageindex.com
Apache License 2.0
538 stars 42 forks source link

Add support for a HOMEPAGE_INTERSTITIAL env variable to allow us to put up a status page #3305

Closed finestructure closed 3 weeks ago

finestructure commented 3 weeks ago

I've updated our dev db to Postgres 16 yesterday and it takes the db offline for about 8 minutes.

I was planning to do the same next Sunday morning but rather than have the server show an obscure error page we could put up a simple, configurable interstitial on the home page via an env variable HOMEPAGE_INTERSTITIAL. Its content can/should be Markdown.

This could also be useful in case we ever hit db issues, because this page can be served when the db is down.

CleanShot 2024-08-19 at 12 10 02@2x

finestructure commented 3 weeks ago

That'd be great, it's a bit tight the way it is 👌