mirror of
https://github.com/supabase/supabase.git
synced 2026-12-06 08:29:01 +00:00
* Add spam page * Add select * Add experimental flag in next.config to see if it resolves the build issue * Add slack webhook call * updated endpoint * revert * update * fix placeholder styling in Select * clean * Update [ref].tsx * Update select.tsx * revert * protect form and endpoint from bad ref abuse * Delete spam api route * Add api route back * Basic api route * Rename * rename route * Add as route handler * Stub in supabase update * Add the proper supabase project * Rename spam to opt-out * Swap anon for service role key * Rename env var --------- Co-authored-by: Joshen Lim <joshenlimek@gmail.com> Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>
16 lines
282 B
TypeScript
16 lines
282 B
TypeScript
import { useEffect } from 'react'
|
|
import { useRouter } from 'next/router'
|
|
|
|
const OptOutIndex = () => {
|
|
const router = useRouter()
|
|
|
|
// We don't want anyone landing here directly
|
|
useEffect(() => {
|
|
router.push('/')
|
|
}, [router])
|
|
|
|
return null
|
|
}
|
|
|
|
export default OptOutIndex
|