diff --git a/src/hooks.client.js b/src/hooks.client.js new file mode 100644 index 0000000..1e41561 --- /dev/null +++ b/src/hooks.client.js @@ -0,0 +1,6 @@ +export const handleError = ({ error, event }) => { + if (event.url.pathname.startsWith("/repo")) { + window.location.href = event.url.pathname; + return; + } +};