color scheme

This commit is contained in:
Hailey
2025-03-19 11:41:39 -07:00
parent 7731475784
commit a6524aa44e
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -62,9 +62,9 @@ export const envToCfg = (env: Environment): Config => {
hostnames: env.hostnames,
appHostname: env.appHostname || 'bsky.app',
}
if (!env.dbPostgresUrl) {
throw new Error('Must configure postgres url (LINK_DB_POSTGRES_URL)')
}
//if (!env.dbPostgresUrl) {
// throw new Error('Must configure postgres url (LINK_DB_POSTGRES_URL)')
//}
const dbCfg: DbConfig = {
url: env.dbPostgresUrl,
migrationUrl: env.dbPostgresMigrationUrl,
+1 -1
View File
@@ -43,7 +43,7 @@ export default function (ctx: AppContext, app: Express) {
res.type('html')
res.status(200)
return res.send(
`<html><head><meta http-equiv="refresh" content="0; URL='${url.href}'" /></head></html>`,
`<html><head><meta http-equiv="refresh" content="0; URL='${url.href}'" /><style>:root { color-scheme: light dark; }</style></head></html>`,
)
}),
)