color scheme
This commit is contained in:
@@ -62,9 +62,9 @@ export const envToCfg = (env: Environment): Config => {
|
|||||||
hostnames: env.hostnames,
|
hostnames: env.hostnames,
|
||||||
appHostname: env.appHostname || 'bsky.app',
|
appHostname: env.appHostname || 'bsky.app',
|
||||||
}
|
}
|
||||||
if (!env.dbPostgresUrl) {
|
//if (!env.dbPostgresUrl) {
|
||||||
throw new Error('Must configure postgres url (LINK_DB_POSTGRES_URL)')
|
// throw new Error('Must configure postgres url (LINK_DB_POSTGRES_URL)')
|
||||||
}
|
//}
|
||||||
const dbCfg: DbConfig = {
|
const dbCfg: DbConfig = {
|
||||||
url: env.dbPostgresUrl,
|
url: env.dbPostgresUrl,
|
||||||
migrationUrl: env.dbPostgresMigrationUrl,
|
migrationUrl: env.dbPostgresMigrationUrl,
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ export default function (ctx: AppContext, app: Express) {
|
|||||||
res.type('html')
|
res.type('html')
|
||||||
res.status(200)
|
res.status(200)
|
||||||
return res.send(
|
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