Skip to content

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

add note about Deno setup

dshukertjr063673fbb621
diff --git a/apps/docs/pages/guides/integrations/onesignal.mdx b/apps/docs/pages/guides/integrations/onesignal.mdx
index 5013786743a..cd6b7021dd8 100644
--- a/apps/docs/pages/guides/integrations/onesignal.mdx
+++ b/apps/docs/pages/guides/integrations/onesignal.mdx
@@ -16,6 +16,8 @@ export const meta = {
This guide steps you through how you can integrate OneSignal with Supabase to create a seamless cloud messaging experience for your users using Database webhooks and edge functions through a simple Next.js application.
+![Entity Diagram](/docs/img/guides/integrations/onesignal/diagram.png)
+
We will create a simple ordering app and use Supabase Database Webhooks in conjunction with Edge Function to provide a real-time push notification experience.
You can find the complete example app along with the edge functions code to send the notifications [here](https://github.com/supabase-community/onesignal).
@@ -265,6 +267,8 @@ serve(async (req) => {
})
```
+If you see bunch of errors in your editor, it's because your editor is not configured to use Deno. Follow the official setup guide [here](https://deno.land/[email protected]/getting_started/setup_your_environment) to setup your IDE to use Deno.
+
The function receives a `record` object, which is the row inserted in your `orders` table, and constructs a notification object to then send to OneSignal to deliver the push notification.
We also need to set the environment variable for the function. Create a `.env` file under your `supabase` directory and paste the following.
diff --git a/apps/docs/public/img/guides/integrations/onesignal/diagram.png b/apps/docs/public/img/guides/integrations/onesignal/diagram.png
new file mode 100644
index 00000000000..77b83ca5315
Binary files /dev/null and b/apps/docs/public/img/guides/integrations/onesignal/diagram.png differ