
the error was due to a faulty logic. 'useRouter' was being used to detect pathname, which doesn't keep original url on 404 page. this commit fixes that. this commit also makes it easy to go to IMDb by adding a clear link on error page. closes https://github.com/zyachel/libremdb/issues/50
4 lines
137 B
TypeScript
4 lines
137 B
TypeScript
import { AppError as AppErrorClass } from 'src/utils/helpers';
|
|
|
|
export type AppError = Omit<InstanceType<typeof AppErrorClass>, 'name'>;
|