update: showing 'go home' button on all error pages
This commit is contained in:
parent
92bd82c5f3
commit
3ec949bdc5
@ -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
|
||||
@ -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": []
|
||||
}
|
||||
@ -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>
|
||||
);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user