fix: rmWhitespace
This commit is contained in:
parent
161316bd6a
commit
34470197d1
|
|
@ -15,7 +15,7 @@ import { checkPassword, makeAuthCookie, verifyAuthCookie } from "./auth";
|
||||||
process.on("unhandledRejection", (reason) => console.error("[unhandledRejection]", reason));
|
process.on("unhandledRejection", (reason) => console.error("[unhandledRejection]", reason));
|
||||||
process.on("uncaughtException", (err) => console.error("[uncaughtException]", err));
|
process.on("uncaughtException", (err) => console.error("[uncaughtException]", err));
|
||||||
|
|
||||||
const eta = new Eta({ views: resolve(import.meta.dir, "./views"), cache: true, defaultExtension: ".ejs" });
|
const eta = new Eta({ views: resolve(import.meta.dir, "./views"), cache: true, defaultExtension: ".ejs", rmWhitespace: true });
|
||||||
|
|
||||||
const PUBLIC_BASE = process.env.STATUS_BASE_URL ?? "https://status.pingql.com";
|
const PUBLIC_BASE = process.env.STATUS_BASE_URL ?? "https://status.pingql.com";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ const assetHash = {
|
||||||
qb: await hashFile(`${dashDir}/query-builder.js`),
|
qb: await hashFile(`${dashDir}/query-builder.js`),
|
||||||
};
|
};
|
||||||
|
|
||||||
const eta = new Eta({ views: resolve(import.meta.dir, "../views"), cache: true, defaultExtension: ".ejs" });
|
const eta = new Eta({ views: resolve(import.meta.dir, "../views"), cache: true, defaultExtension: ".ejs", rmWhitespace: true });
|
||||||
|
|
||||||
function timeAgoSSR(date: string | Date): string {
|
function timeAgoSSR(date: string | Date): string {
|
||||||
const ts = new Date(date).getTime();
|
const ts = new Date(date).getTime();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue