mirror of
https://github.com/supabase/supabase.git
synced 2026-07-05 04:14:46 +08:00
9 lines
211 B
TypeScript
9 lines
211 B
TypeScript
const notFoundLink = (origPath: string) => {
|
|
if (!origPath) return '/not-found'
|
|
|
|
const searchParams = new URLSearchParams({ page: origPath })
|
|
return `/not-found?${searchParams}`
|
|
}
|
|
|
|
export { notFoundLink }
|