fix: flashbang
This commit is contained in:
parent
d8d1952304
commit
96a58233fd
|
|
@ -7,7 +7,7 @@ const EMAIL_HMAC_KEY = process.env.EMAIL_HMAC_KEY || "pingql-default-hmac-key";
|
|||
|
||||
function redir(to: string) {
|
||||
return new Response(
|
||||
`<!DOCTYPE html><html><head><meta http-equiv="refresh" content="0;url=${to}"><meta name="robots" content="noindex"></head><body></body></html>`,
|
||||
`<!DOCTYPE html><html lang="en" class="dark"><head><meta charset="UTF-8"><meta http-equiv="refresh" content="0;url=${to}"><meta name="robots" content="noindex"><style>html,body{background:#0a0a0a;margin:0;height:100%}</style></head><body></body></html>`,
|
||||
{ headers: { "content-type": "text/html; charset=utf-8", "cache-control": "no-store" } },
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@ export function html(template: string, data: Record<string, unknown> = {}) {
|
|||
|
||||
function redirect(to: string) {
|
||||
return new Response(
|
||||
`<!DOCTYPE html><html><head><meta http-equiv="refresh" content="0;url=${to}"><meta name="robots" content="noindex"></head><body></body></html>`,
|
||||
`<!DOCTYPE html><html lang="en" class="dark"><head><meta charset="UTF-8"><meta http-equiv="refresh" content="0;url=${to}"><meta name="robots" content="noindex"><style>html,body{background:#0a0a0a;margin:0;height:100%}</style></head><body></body></html>`,
|
||||
{ headers: { "content-type": "text/html; charset=utf-8", "cache-control": "no-store" } },
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue