The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
[bot] sync troubleshooting guides to db (#32845)
github-actions[bot]05dfc562118b
diff --git a/apps/docs/content/troubleshooting/how-do-you-troubleshoot-nextjs---supabase-auth-issues-riMCZV.mdx b/apps/docs/content/troubleshooting/how-do-you-troubleshoot-nextjs---supabase-auth-issues-riMCZV.mdxindex dcb2b077963..dda68f9e16c 100644--- a/apps/docs/content/troubleshooting/how-do-you-troubleshoot-nextjs---supabase-auth-issues-riMCZV.mdx+++ b/apps/docs/content/troubleshooting/how-do-you-troubleshoot-nextjs---supabase-auth-issues-riMCZV.mdx@@ -2,8 +2,9 @@title = "How do you troubleshoot NextJS - Supabase Auth issues?"github_url = "https://github.com/orgs/supabase/discussions/27606"date_created = "2024-06-28T03:26:44+00:00"-topics = ["auth"]-keywords = ["NextJS", "SSR", "authentication", "client"]+topics = [ "auth" ]+keywords = [ "NextJS", "SSR", "authentication", "client" ]+database_id = "4017d331-0b24-439a-9231-793801395ca2"---Authentication is hard. SSR is harder. At Supabase, we try to address these together by providing`@supabase/ssr` package to help implement authentication with Supabase conveniently. While I’m targeting to address NextJS-related issues, you can probably apply these concepts to other SSR frameworks such as Nuxt, SvelteKit, and Remix. This is a living document, and we plan to update it regularly as NextJS and its APIs + `@supabase/ssr` evolve.diff --git a/apps/docs/content/troubleshooting/importing-stripe-or-other-modules-from-esmsh-on-deno-edge-functions-throws-an-error-TmbB5p.mdx b/apps/docs/content/troubleshooting/importing-stripe-or-other-modules-from-esmsh-on-deno-edge-functions-throws-an-error-TmbB5p.mdxindex e32212f4842..272dd4a326a 100644--- a/apps/docs/content/troubleshooting/importing-stripe-or-other-modules-from-esmsh-on-deno-edge-functions-throws-an-error-TmbB5p.mdx+++ b/apps/docs/content/troubleshooting/importing-stripe-or-other-modules-from-esmsh-on-deno-edge-functions-throws-an-error-TmbB5p.mdx@@ -2,8 +2,9 @@title = "Importing Stripe or other modules from esm.sh on Deno Edge Functions throws an error"github_url = "https://github.com/orgs/supabase/discussions/14303"date_created = "2023-05-12T01:30:31+00:00"-topics = ["functions"]-keywords = ["import", "module", "esm"]+topics = [ "functions" ]+keywords = [ "import", "module", "esm" ]+database_id = "225cb141-f442-47cf-834d-1d82d703748a"---Try adding `?target=deno` to the import path of the module. For Stripe, the updated import would be:diff --git a/apps/docs/content/troubleshooting/inspecting-edge-function-environment-variables-wg5qOQ.mdx b/apps/docs/content/troubleshooting/inspecting-edge-function-environment-variables-wg5qOQ.mdxindex d9c5e69dcf8..775a47275ee 100644--- a/apps/docs/content/troubleshooting/inspecting-edge-function-environment-variables-wg5qOQ.mdx+++ b/apps/docs/content/troubleshooting/inspecting-edge-function-environment-variables-wg5qOQ.mdx@@ -2,11 +2,12 @@title = "Inspecting edge function environment variables"github_url = "https://github.com/orgs/supabase/discussions/27139"date_created = "2024-06-09T18:44:40+00:00"-topics = ["functions", "cli"]-keywords = ["logging", "environment", "variables", "secrets", "docker"]+topics = [ "functions", "cli" ]+keywords = [ "logging", "environment", "variables", "secrets", "docker" ]+database_id = "f47c9b0e-f537-4908-8d35-5dd3dc4c5627"[api]-cli = ["supabase-init", "supabase-secrets-set", "supabase-secrets-list"]+cli = [ "supabase-init", "supabase-secrets-set", "supabase-secrets-list" ]---Sometimes it can be informative to log values from your Edge Functions. This walks you through the process of logging environment variables for inspection, but it can be generalized for all logging.diff --git a/apps/docs/content/troubleshooting/nextjs-1314-stale-data-when-changing-rls-or-table-data-85b8oQ.mdx b/apps/docs/content/troubleshooting/nextjs-1314-stale-data-when-changing-rls-or-table-data-85b8oQ.mdxindex ec6b4bca08d..4f2a5b4a174 100644--- a/apps/docs/content/troubleshooting/nextjs-1314-stale-data-when-changing-rls-or-table-data-85b8oQ.mdx+++ b/apps/docs/content/troubleshooting/nextjs-1314-stale-data-when-changing-rls-or-table-data-85b8oQ.mdx@@ -2,8 +2,9 @@title = "Next.js 13/14 stale data when changing RLS or table data."github_url = "https://github.com/orgs/supabase/discussions/19084"date_created = "2023-11-19T19:33:06+00:00"-topics = ["auth", "platform"]-keywords = ["cache", "rls", "next.js"]+topics = [ "auth", "platform" ]+keywords = [ "cache", "rls", "next.js" ]+database_id = "9be3727b-c3ea-4dda-b30c-55f3c8aa8f35"---Next.js caches urls in certain cases. This is causing users to lose lots of time debugging early on with RLS changes. Changing the table data in the UI will also not be returned in these cases.