The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: remote patterns (#29263)
Francesco Sansalvadore7a7ce1c7a9f1
diff --git a/apps/docs/lib/remotePatterns.js b/apps/docs/lib/remotePatterns.jsnew file mode 100644index 00000000000..c160af7c6f4--- /dev/null+++ b/apps/docs/lib/remotePatterns.js@@ -0,0 +1,62 @@+module.exports = [+ {+ protocol: 'https',+ hostname: 'avatars.githubusercontent.com',+ port: '',+ pathname: '/u/*',+ },+ {+ protocol: 'https',+ hostname: 'github.com',+ port: '',+ pathname: '**',+ },+ {+ protocol: 'https',+ hostname: 'supabase.github.io',+ port: '',+ pathname: '**',+ },+ {+ protocol: 'https',+ hostname: 'user-images.githubusercontent.com',+ port: '',+ pathname: '**',+ },+ {+ protocol: 'https',+ hostname: 'raw.githubusercontent.com',+ port: '',+ pathname: '**',+ },+ {+ protocol: 'https',+ hostname: 'weweb-changelog.ghost.io',+ port: '',+ pathname: '**',+ },+ {+ protocol: 'https',+ hostname: 'img.youtube.com',+ port: '',+ pathname: '/vi/*',+ },+ {+ protocol: 'https',+ hostname: 'archbee-image-uploads.s3.amazonaws.com',+ port: '',+ pathname: '*',+ },+ {+ protocol: 'https',+ hostname: 'obuldanrptloktxcffvn.supabase.co',+ port: '',+ pathname: '**',+ },+ {+ protocol: 'https',+ hostname: 'xguihxuzqibwxjnimxev.supabase.co',+ port: '',+ pathname: '**',+ },+]diff --git a/apps/docs/next.config.mjs b/apps/docs/next.config.mjsindex c94af1dac64..f6df4d065a1 100644--- a/apps/docs/next.config.mjs+++ b/apps/docs/next.config.mjs@@ -9,6 +9,7 @@ import configureBundleAnalyzer from '@next/bundle-analyzer'import withYaml from 'next-plugin-yaml'import codeHikeTheme from 'config/code-hike.theme.json' assert { type: 'json' }+import remotePatterns from './lib/remotePatterns.js'const withBundleAnalyzer = configureBundleAnalyzer({enabled: process.env.ANALYZE === 'true',@@ -43,18 +44,8 @@ const nextConfig = {basePath: process.env.NEXT_PUBLIC_BASE_PATH || '/docs',images: {dangerouslyAllowSVG: true,- domains: [- 'avatars.githubusercontent.com',- 'github.com',- 'supabase.github.io',- 'user-images.githubusercontent.com',- 'raw.githubusercontent.com',- 'weweb-changelog.ghost.io',- 'img.youtube.com',- 'archbee-image-uploads.s3.amazonaws.com',- 'obuldanrptloktxcffvn.supabase.co',- 'xguihxuzqibwxjnimxev.supabase.co',- ],+ // @ts-ignore+ remotePatterns,},// TODO: @next/mdx ^13.0.2 only supports experimental mdxRs flag. next ^13.0.2 will stop warning about this being unsupported.// mdxRs: true,diff --git a/apps/studio/next.config.js b/apps/studio/next.config.jsindex fe49f4b4c3f..8d82e550bd7 100644--- a/apps/studio/next.config.js+++ b/apps/studio/next.config.js@@ -431,11 +431,31 @@ const nextConfig = {images: {// to make Vercel avatars work without issue. Vercel uses SVGs for users who don't have set avatars.dangerouslyAllowSVG: true,- domains: [- 'github.com',- 'avatars.githubusercontent.com',- 'api-frameworks.vercel.sh',- 'vercel.com',+ remotePatterns: [+ {+ protocol: 'https',+ hostname: 'github.com',+ port: '',+ pathname: '**',+ },+ {+ protocol: 'https',+ hostname: 'avatars.githubusercontent.com',+ port: '',+ pathname: '/u/*',+ },+ {+ protocol: 'https',+ hostname: 'api-frameworks.vercel.sh',+ port: '',+ pathname: '**',+ },+ {+ protocol: 'https',+ hostname: 'vercel.com',+ port: '',+ pathname: '**',+ },],},transpilePackages: [diff --git a/apps/www/lib/remotePatterns.js b/apps/www/lib/remotePatterns.jsnew file mode 100644index 00000000000..2ee99063db2--- /dev/null+++ b/apps/www/lib/remotePatterns.js@@ -0,0 +1,98 @@+module.exports = [+ {+ protocol: 'https',+ hostname: 'api.producthunt.com',+ port: '',+ pathname: '**',+ },+ {+ protocol: 'https',+ hostname: 'avatars.githubusercontent.com',+ port: '',+ pathname: '/u/*',+ },+ {+ protocol: 'https',+ hostname: 'ca.slack-edge.com',+ port: '',+ pathname: '/*',+ },+ {+ protocol: 'https',+ hostname: 'colab.research.google.com',+ port: '',+ pathname: '**',+ },+ {+ protocol: 'https',+ hostname: 'github.com',+ port: '',+ pathname: '**',+ },+ {+ protocol: 'https',+ hostname: 's3-us-west-2.amazonaws.com',+ port: '',+ pathname: '**',+ },+ {+ protocol: 'https',+ hostname: 'img.youtube.com',+ port: '',+ pathname: '/vi/*',+ },+ {+ protocol: 'https',+ hostname: 'images.unsplash.com',+ port: '',+ pathname: '/photo-*',+ },+ {+ protocol: 'https',+ hostname: 'vercel.com',+ port: '',+ pathname: '**',+ },+ {+ protocol: 'https',+ hostname: 'obuldanrptloktxcffvn.supabase.co',+ port: '',+ pathname: '**',+ },+ {+ protocol: 'https',+ hostname: 'xguihxuzqibwxjnimxev.supabase.co',+ port: '',+ pathname: '**',+ },+ {+ protocol: 'https',+ hostname: 'pbs.twimg.com',+ port: '',+ pathname: '/profile_images/**',+ },+ {+ protocol: 'https',+ hostname: 'res.cloudinary.com',+ port: '',+ pathname: '**',+ },+ {+ protocol: 'https',+ hostname: 'supabase.com',+ port: '',+ pathname: '**',+ },+ {+ protocol: 'https',+ hostname: 'user-images.githubusercontent.com',+ port: '',+ pathname: '**',+ },+ {+ protocol: 'https',+ hostname: 'media.licdn.com',+ port: '',+ pathname: '/dms/image/**',+ },+]diff --git a/apps/www/next.config.mjs b/apps/www/next.config.mjsindex ce79046850a..29ca81298a4 100644--- a/apps/www/next.config.mjs+++ b/apps/www/next.config.mjs@@ -5,6 +5,7 @@ import rehypeSlug from 'rehype-slug'import remarkGfm from 'remark-gfm'import redirects from './lib/redirects.js'+import remotePatterns from './lib/remotePatterns.js'import rewrites from './lib/rewrites.js'import { remarkCodeHike } from '@code-hike/mdx'@@ -48,25 +49,7 @@ const nextConfig = {swcMinify: true,images: {dangerouslyAllowSVG: true,- domains: [- 'api.producthunt.com',- 'avatars.githubusercontent.com',- 'ca.slack-edge.com',- 'colab.research.google.com',- 'github.com',- 'https://s3-us-west-2.amazonaws.com',- 'images.unsplash.com',- 'img.youtube.com',- 'vercel.com',- 'obuldanrptloktxcffvn.supabase.co',- 'xguihxuzqibwxjnimxev.supabase.co',- 'pbs.twimg.com',- 'res.cloudinary.com',- 's3-us-west-2.amazonaws.com',- 'supabase.com',- 'user-images.githubusercontent.com',- 'media.licdn.com',- ],+ remotePatterns,},async headers() {return [