Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

added an endpoint for showing how to redirect

Lakshan Perera7df6ad35ceb7
diff --git a/examples/edge-functions/supabase/functions/oak-server/index.ts b/examples/edge-functions/supabase/functions/oak-server/index.ts
index 97bc7fdb169..8e96d1f0033 100644
--- a/examples/edge-functions/supabase/functions/oak-server/index.ts
+++ b/examples/edge-functions/supabase/functions/oak-server/index.ts
@@ -14,6 +14,9 @@ router
context.response.body = { msg: `Hey ${name}!` }
})
+ .get('/oak-server/redirect', (context) => {
+ context.response.redirect('https://www.example.com')
+ })
const app = new Application()
app.use(router.routes())