The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: Fix iframes for Library (#34438)
Ivan Vasilov3c0cb1a4e772
diff --git a/apps/docs/next.config.mjs b/apps/docs/next.config.mjsindex 3354deb3208..bc49691e0d2 100644--- a/apps/docs/next.config.mjs+++ b/apps/docs/next.config.mjs@@ -6,7 +6,6 @@ import remarkGfm from 'remark-gfm'import configureBundleAnalyzer from '@next/bundle-analyzer'import withYaml from 'next-plugin-yaml'-import codeHikeTheme from 'config/code-hike.theme.json' with { type: 'json' }import remotePatterns from './lib/remotePatterns.js'const withBundleAnalyzer = configureBundleAnalyzer({@@ -78,7 +77,7 @@ const nextConfig = {},{key: 'X-Frame-Options',- value: 'DENY',+ value: 'SAMEORIGIN',},],has: [diff --git a/apps/ui-library/components/command.tsx b/apps/ui-library/components/command.tsxindex cfd4adfa1f8..fe4ce414878 100644--- a/apps/ui-library/components/command.tsx+++ b/apps/ui-library/components/command.tsx@@ -7,7 +7,7 @@ interface CommandCopyProps {export function Command({ name }: CommandCopyProps) {const command = `npx shadcn@latest add ${process.env.VERCEL_TARGET_ENV === 'production'- ? `https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`+ ? `https://supabase.com`: process.env.VERCEL_TARGET_ENV === 'preview'? `https://${process.env.VERCEL_PROJECT_PREVIEW_URL}`: 'http://localhost:3004'diff --git a/apps/ui-library/components/open-in-v0-button.tsx b/apps/ui-library/components/open-in-v0-button.tsxindex 6946dbd9303..103ca882d30 100644--- a/apps/ui-library/components/open-in-v0-button.tsx+++ b/apps/ui-library/components/open-in-v0-button.tsx@@ -15,7 +15,7 @@ export function OpenInV0Button({asChild><a- href={`https://v0.dev/chat/api/open?url=https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}${process.env.NEXT_PUBLIC_BASE_PATH ?? ''}/r/${name}.json`}+ href={`https://v0.dev/chat/api/open?url=https://supabase.com${process.env.NEXT_PUBLIC_BASE_PATH ?? ''}/r/${name}.json`}target="_blank"rel="noreferrer">diff --git a/apps/ui-library/next.config.mjs b/apps/ui-library/next.config.mjsindex 8b7642fa434..44a9a34c9ec 100644--- a/apps/ui-library/next.config.mjs+++ b/apps/ui-library/next.config.mjs@@ -4,22 +4,6 @@ import { withContentlayer } from 'next-contentlayer2'const nextConfig = {transpilePackages: ['ui', 'common', 'shared-data', 'icons', 'tsconfig'],basePath: process.env.NEXT_PUBLIC_BASE_PATH,- images: {- remotePatterns: [- {- protocol: 'https',- hostname: 'avatars.githubusercontent.com',- },- {- protocol: 'https',- hostname: 'images.unsplash.com',- },- {- protocol: 'https',- hostname: 'pbs.twimg.com',- },- ],- },async redirects() {return [...(process.env.NEXT_PUBLIC_BASE_PATH?.lengthdiff --git a/turbo.json b/turbo.jsonindex 6204aeef4e0..7b9914dd284 100644--- a/turbo.json+++ b/turbo.json@@ -129,7 +129,6 @@"NEXT_PUBLIC_BASE_PATH","NEXT_PUBLIC_APP_URL","VERCEL_TARGET_ENV",- "VERCEL_PROJECT_PRODUCTION_URL","VERCEL_PROJECT_PREVIEW_URL","NODE_ENV","HIDE_TAILWIND_INDICATOR",