main
Ethan Niser 2023-09-17 23:57:45 -05:00
parent c6a98ce9ab
commit 51b27deca3
4 changed files with 9 additions and 1 deletions

Binary file not shown.

@ -18,6 +18,7 @@
"devDependencies": {
"@ianvs/prettier-plugin-sort-imports": "^4.1.0",
"@kitajs/ts-html-plugin": "^1.0.1",
"@total-typescript/ts-reset": "^0.5.1",
"bun-types": "latest",
"concurrently": "^8.2.1",
"drizzle-kit": "^0.19.13",

1
reset.d.ts vendored

@ -0,0 +1 @@
import "@total-typescript/ts-reset";

@ -19,7 +19,13 @@ export const index = new Elysia()
const revalidate = request.headers.get("HX-Revalidate");
if (revalidate) {
const tags = JSON.parse(revalidate);
tags.forEach((tag: string) => {
if (!Array.isArray(tags)) {
return;
}
tags.forEach((tag) => {
if (typeof tag !== "string") {
return;
}
revalidateTag(tag);
});
}