Files
supabase/apps/www/pages/opt-out/index.tsx
f7292dce8c Chore/spam page (#29854)
* 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>
2024-11-13 14:09:24 -03:30

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