color scheme
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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>`,
|
||||
)
|
||||
}),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user