1
0

update: showing 'go home' button on all error pages

This commit is contained in:
alikia2x (寒寒) 2025-12-01 20:53:13 +08:00
parent 92bd82c5f3
commit 3ec949bdc5
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG Key ID: 56209E0CCD8420C6
3 changed files with 26 additions and 5 deletions

View File

@ -0,0 +1,15 @@
// ../../node_modules/.bun/wrangler@4.46.0/node_modules/wrangler/templates/no-op-worker.js
var no_op_worker_default = {
fetch() {
return new Response("Not found", {
status: 404,
headers: {
"Content-Type": "text/html"
}
});
}
};
export {
no_op_worker_default as default
};
//# sourceMappingURL=no-op-worker.js.map

View File

@ -0,0 +1,8 @@
{
"version": 3,
"sources": ["../../../../../node_modules/.bun/wrangler@4.46.0/node_modules/wrangler/templates/no-op-worker.js"],
"sourceRoot": "/Users/alikia/Code/cvsa/packages/temp_frontend/.wrangler/tmp/deploy-41aj6n",
"sourcesContent": ["export default {\n\tfetch() {\n\t\treturn new Response(\"Not found\", {\n\t\t\tstatus: 404,\n\t\t\theaders: {\n\t\t\t\t\"Content-Type\": \"text/html\",\n\t\t\t},\n\t\t});\n\t},\n};\n"],
"mappings": ";AAAA,IAAO,uBAAQ;AAAA,EACd,QAAQ;AACP,WAAO,IAAI,SAAS,aAAa;AAAA,MAChC,QAAQ;AAAA,MACR,SAAS;AAAA,QACR,gBAAgB;AAAA,MACjB;AAAA,IACD,CAAC;AAAA,EACF;AACD;",
"names": []
}

View File

@ -16,11 +16,9 @@ export function Error({ error }: { error: { status: number; value: { message?: s
{error.value.message && (
<p className="text-neutral-600 dark:text-neutral-400 wrap-break-word">{error.value.message}</p>
)}
{error.status === 404 && (
<a href="/" className="hover:underline">
</a>
)}
<a href="/" className="hover:underline">
</a>
</div>
</div>
);