The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: moves cloudflare from blog to integration doc
awaliasb0c642779b3a
diff --git a/apps/www/_blog/2023-05-18-supabase-cloudflare-integration.mdx b/apps/docs/pages/guides/integrations/cloudflare-workers.mdxsimilarity index 77%rename from apps/www/_blog/2023-05-18-supabase-cloudflare-integration.mdxrename to apps/docs/pages/guides/integrations/cloudflare-workers.mdxindex e5f2d338fd9..c4017d16a04 100644--- a/apps/www/_blog/2023-05-18-supabase-cloudflare-integration.mdx+++ b/apps/docs/pages/guides/integrations/cloudflare-workers.mdx@@ -1,40 +1,37 @@-----title: Cloudflare Integrates with Supabase-description: Using Supabase from your Cloudflare Workers just got even easier.-author: ant_wilson-image: 2023-05-09-beta-update-april/monthly-update-april-2023.jpg-thumb: 2023-05-09-beta-update-april/monthly-update-april-2023.jpg-tags:- - release-notes-date: '2023-05-18'-toc_depth: 3----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {+ id: 'cloudflare-workers',+ title: 'Cloudflare Workers',+ description:+ "Using Supabase from your Cloudflare Workers just got even easier.",+}Using Supabase in Cloudflare Workers has always been a great way to interact with your data from the edge. Supabase-js communicates with your Supabase Postgres instance via HTTP using PostgREST, so you never need to worry about running out of database connections.-In this post we'll walk you through a new addition to the Cloudflare Workers dashboard - the ability to authenticate directly with your Supabase account, and automatically inject your Supabase environment variables into your Worker code.+In this guide we'll walk you through a new addition to the Cloudflare Workers dashboard - the ability to authenticate directly with your Supabase account, and automatically inject your Supabase environment variables into your Worker code.## How To Enable Supabase Integration in Cloudflare WorkersStart by heading to the [Cloudflare Dashboard](https://dash.cloudflare.com), go to the Workers & Pages tab and hit 'Create Application' followed by 'Create Worker'.-+Deploy the Hello World example Worker. Once it's deployed hit 'Configure Worker'.-+On the configuration page select the Settings tab, followed by the Integrations option.You should now see the database integration options. On the Supabase card, click 'Add Integration'-+After reviewing and accepting the terms, you will be shown the option to connect and a Supabase popup should appear.Follow the flow by selecting your Supabase Org and the Project you wish to connect to. If you don't have any projects yet, head over to the [Supabase Dashboard](https://app.supabase.com) to create one.-+Once it's connected you will be given the option to select which Supabase Key you want to pull into the Worker context.@@ -42,10 +39,12 @@ The `Anon` key here is one that always adhires to the Database's RLS policies (rThe `Service Role` is typically ok to use in backend contexts, such as Cloudflare Workers, but note that this key **bypasses your Row Level Security policies**, and has the ablity to read, write, and delete any data in your database.-+Once this is done the `SUPABASE_KEY` and `SUPABASE_URL` environment variables will now be available from your Cloudflare Worker code.++You can now install the supabase-js client in your Worker:`npm install @supabase/supabase-js`diff --git a/apps/www/public/images/blog/cloudflare-integration/2.png b/apps/docs/public/img/guides/integrations/cloudflare-integration/2.pngsimilarity index 100%rename from apps/www/public/images/blog/cloudflare-integration/2.pngrename to apps/docs/public/img/guides/integrations/cloudflare-integration/2.pngdiff --git a/apps/www/public/images/blog/cloudflare-integration/3.png b/apps/docs/public/img/guides/integrations/cloudflare-integration/3.pngsimilarity index 100%rename from apps/www/public/images/blog/cloudflare-integration/3.pngrename to apps/docs/public/img/guides/integrations/cloudflare-integration/3.pngdiff --git a/apps/www/public/images/blog/cloudflare-integration/4.png b/apps/docs/public/img/guides/integrations/cloudflare-integration/4.pngsimilarity index 100%rename from apps/www/public/images/blog/cloudflare-integration/4.pngrename to apps/docs/public/img/guides/integrations/cloudflare-integration/4.pngdiff --git a/apps/www/public/images/blog/cloudflare-integration/5.png b/apps/docs/public/img/guides/integrations/cloudflare-integration/5.pngsimilarity index 100%rename from apps/www/public/images/blog/cloudflare-integration/5.pngrename to apps/docs/public/img/guides/integrations/cloudflare-integration/5.pngdiff --git a/apps/www/public/images/blog/cloudflare-integration/6.png b/apps/docs/public/img/guides/integrations/cloudflare-integration/6.pngsimilarity index 100%rename from apps/www/public/images/blog/cloudflare-integration/6.pngrename to apps/docs/public/img/guides/integrations/cloudflare-integration/6.pngdiff --git a/apps/docs/public/img/guides/integrations/cloudflare-integration/7.png b/apps/docs/public/img/guides/integrations/cloudflare-integration/7.pngnew file mode 100644index 00000000000..f6d4c49df5fBinary files /dev/null and b/apps/docs/public/img/guides/integrations/cloudflare-integration/7.png differdiff --git a/apps/docs/public/img/integrations/logos/cloudflare_workers_logo.jpeg b/apps/docs/public/img/integrations/logos/cloudflare_workers_logo.jpegnew file mode 100644index 00000000000..6d09d84acc5Binary files /dev/null and b/apps/docs/public/img/integrations/logos/cloudflare_workers_logo.jpeg differdiff --git a/apps/docs/public/img/integrations/logos/cloudflare_workers_logo.png b/apps/docs/public/img/integrations/logos/cloudflare_workers_logo.pngnew file mode 100644index 00000000000..af9e1b1a658Binary files /dev/null and b/apps/docs/public/img/integrations/logos/cloudflare_workers_logo.png differdiff --git a/apps/docs/public/img/integrations/logos/upstash_redis.jpeg b/apps/docs/public/img/integrations/logos/upstash_redis_logo.jpegsimilarity index 100%rename from apps/docs/public/img/integrations/logos/upstash_redis.jpegrename to apps/docs/public/img/integrations/logos/upstash_redis_logo.jpegdiff --git a/apps/docs/public/img/integrations/logos/upstash_redis.png b/apps/docs/public/img/integrations/logos/upstash_redis_logo.pngsimilarity index 100%rename from apps/docs/public/img/integrations/logos/upstash_redis.pngrename to apps/docs/public/img/integrations/logos/upstash_redis_logo.pngdiff --git a/apps/docs/public/sitemap.xml b/apps/docs/public/sitemap.xmlindex 78ce4d811b9..c3d36c42b96 100644--- a/apps/docs/public/sitemap.xml+++ b/apps/docs/public/sitemap.xml@@ -552,6 +552,12 @@<changefreq>0.5</changefreq></url>+ <url>+ <loc>https://supabase.com/docs/guides/integrations/cloudflare-workers</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>+<url><loc>https://supabase.com/docs/guides/integrations/dhiwise</loc><changefreq>weekly</changefreq>