The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Chore/next14 database design (#19190)
Jonathan Summers-Muir7ce355222b57
diff --git a/apps/database-new/next.config.js b/apps/database-new/next.config.jsindex 81fdd3746e6..5bbe7d31982 100644--- a/apps/database-new/next.config.js+++ b/apps/database-new/next.config.js@@ -1,8 +1,5 @@/** @type {import('next').NextConfig} */const nextConfig = {- experimental: {- serverActions: true,- },transpilePackages: ['ui'],webpack: (config, { dev, isServer, webpack, nextRuntime }) => {config.module.rules.push({diff --git a/apps/database-new/package.json b/apps/database-new/package.jsonindex e0fb9694529..5e719abdc6e 100644--- a/apps/database-new/package.json+++ b/apps/database-new/package.json@@ -17,9 +17,10 @@"common": "*","config": "*","dayjs": "^1.11.10",+ "eslint-config-next": "^14.0.3","lodash": "^4.17.21","lucide-react": "^0.292.0",- "next": "^13.5.3",+ "next": "^14.0.3","openai": "^4.17.0","react": "^18.2.0","react-dom": "^18.2.0",diff --git a/package-lock.json b/package-lock.jsonindex a3448a020d8..9ae5cba024c 100644--- a/package-lock.json+++ b/package-lock.json@@ -39,9 +39,10 @@"common": "*","config": "*","dayjs": "^1.11.10",+ "eslint-config-next": "^14.0.3","lodash": "^4.17.21","lucide-react": "^0.292.0",- "next": "^13.5.3",+ "next": "^14.0.3","openai": "^4.17.0","react": "^18.2.0","react-dom": "^18.2.0",@@ -60,6 +61,154 @@"typescript": "^5.2.2"}},+ "apps/database-new/node_modules/@next/env": {+ "version": "14.0.3",+ "resolved": "https://registry.npmjs.org/@next/env/-/env-14.0.3.tgz",+ "integrity": "sha512-7xRqh9nMvP5xrW4/+L0jgRRX+HoNRGnfJpD+5Wq6/13j3dsdzxO3BCXn7D3hMqsDb+vjZnJq+vI7+EtgrYZTeA=="+ },+ "apps/database-new/node_modules/@next/eslint-plugin-next": {+ "version": "14.0.3",+ "resolved": "https://registry.npmjs.org/@next/eslint-plugin-next/-/eslint-plugin-next-14.0.3.tgz",+ "integrity": "sha512-j4K0n+DcmQYCVnSAM+UByTVfIHnYQy2ODozfQP+4RdwtRDfobrIvKq1K4Exb2koJ79HSSa7s6B2SA8T/1YR3RA==",+ "dependencies": {+ "glob": "7.1.7"+ }+ },+ "apps/database-new/node_modules/@next/swc-darwin-arm64": {+ "version": "14.0.3",+ "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-14.0.3.tgz",+ "integrity": "sha512-64JbSvi3nbbcEtyitNn2LEDS/hcleAFpHdykpcnrstITFlzFgB/bW0ER5/SJJwUPj+ZPY+z3e+1jAfcczRLVGw==",+ "cpu": [+ "arm64"+ ],+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "apps/database-new/node_modules/@next/swc-darwin-x64": {+ "version": "14.0.3",+ "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-14.0.3.tgz",+ "integrity": "sha512-RkTf+KbAD0SgYdVn1XzqE/+sIxYGB7NLMZRn9I4Z24afrhUpVJx6L8hsRnIwxz3ERE2NFURNliPjJ2QNfnWicQ==",+ "cpu": [+ "x64"+ ],+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "apps/database-new/node_modules/@next/swc-linux-arm64-gnu": {+ "version": "14.0.3",+ "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-14.0.3.tgz",+ "integrity": "sha512-3tBWGgz7M9RKLO6sPWC6c4pAw4geujSwQ7q7Si4d6bo0l6cLs4tmO+lnSwFp1Tm3lxwfMk0SgkJT7EdwYSJvcg==",+ "cpu": [+ "arm64"+ ],+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "apps/database-new/node_modules/@next/swc-linux-arm64-musl": {+ "version": "14.0.3",+ "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-14.0.3.tgz",+ "integrity": "sha512-v0v8Kb8j8T23jvVUWZeA2D8+izWspeyeDGNaT2/mTHWp7+37fiNfL8bmBWiOmeumXkacM/AB0XOUQvEbncSnHA==",+ "cpu": [+ "arm64"+ ],+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "apps/database-new/node_modules/@next/swc-linux-x64-gnu": {+ "version": "14.0.3",+ "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-14.0.3.tgz",+ "integrity": "sha512-VM1aE1tJKLBwMGtyBR21yy+STfl0MapMQnNrXkxeyLs0GFv/kZqXS5Jw/TQ3TSUnbv0QPDf/X8sDXuMtSgG6eg==",+ "cpu": [+ "x64"+ ],+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "apps/database-new/node_modules/@next/swc-linux-x64-musl": {+ "version": "14.0.3",+ "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-14.0.3.tgz",+ "integrity": "sha512-64EnmKy18MYFL5CzLaSuUn561hbO1Gk16jM/KHznYP3iCIfF9e3yULtHaMy0D8zbHfxset9LTOv6cuYKJgcOxg==",+ "cpu": [+ "x64"+ ],+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "apps/database-new/node_modules/@next/swc-win32-arm64-msvc": {+ "version": "14.0.3",+ "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-14.0.3.tgz",+ "integrity": "sha512-WRDp8QrmsL1bbGtsh5GqQ/KWulmrnMBgbnb+59qNTW1kVi1nG/2ndZLkcbs2GX7NpFLlToLRMWSQXmPzQm4tog==",+ "cpu": [+ "arm64"+ ],+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "apps/database-new/node_modules/@next/swc-win32-ia32-msvc": {+ "version": "14.0.3",+ "resolved": "https://registry.npmjs.org/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-14.0.3.tgz",+ "integrity": "sha512-EKffQeqCrj+t6qFFhIFTRoqb2QwX1mU7iTOvMyLbYw3QtqTw9sMwjykyiMlZlrfm2a4fA84+/aeW+PMg1MjuTg==",+ "cpu": [+ "ia32"+ ],+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "apps/database-new/node_modules/@next/swc-win32-x64-msvc": {+ "version": "14.0.3",+ "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-14.0.3.tgz",+ "integrity": "sha512-ERhKPSJ1vQrPiwrs15Pjz/rvDHZmkmvbf/BjPN/UCOI++ODftT0GtasDPi0j+y6PPJi5HsXw+dpRaXUaw4vjuQ==",+ "cpu": [+ "x64"+ ],+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 10"+ }+ },"apps/database-new/node_modules/@tanstack/query-core": {"version": "5.8.3","license": "MIT",@@ -135,6 +284,114 @@"postcss": "^8.1.0"}},+ "apps/database-new/node_modules/doctrine": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz",+ "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==",+ "dependencies": {+ "esutils": "^2.0.2"+ },+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "apps/database-new/node_modules/eslint-config-next": {+ "version": "14.0.3",+ "resolved": "https://registry.npmjs.org/eslint-config-next/-/eslint-config-next-14.0.3.tgz",+ "integrity": "sha512-IKPhpLdpSUyKofmsXUfrvBC49JMUTdeaD8ZIH4v9Vk0sC1X6URTuTJCLtA0Vwuj7V/CQh0oISuSTvNn5//Buew==",+ "dependencies": {+ "@next/eslint-plugin-next": "14.0.3",+ "@rushstack/eslint-patch": "^1.3.3",+ "@typescript-eslint/parser": "^5.4.2 || ^6.0.0",+ "eslint-import-resolver-node": "^0.3.6",+ "eslint-import-resolver-typescript": "^3.5.2",+ "eslint-plugin-import": "^2.28.1",+ "eslint-plugin-jsx-a11y": "^6.7.1",+ "eslint-plugin-react": "^7.33.2",+ "eslint-plugin-react-hooks": "^4.5.0 || 5.0.0-canary-7118f5dd7-20230705"+ },+ "peerDependencies": {+ "eslint": "^7.23.0 || ^8.0.0",+ "typescript": ">=3.3.1"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "apps/database-new/node_modules/eslint-import-resolver-typescript": {+ "version": "3.6.1",+ "resolved": "https://registry.npmjs.org/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-3.6.1.tgz",+ "integrity": "sha512-xgdptdoi5W3niYeuQxKmzVDTATvLYqhpwmykwsh7f6HIOStGWEIL9iqZgQDF9u9OEzrRwR8no5q2VT+bjAujTg==",+ "dependencies": {+ "debug": "^4.3.4",+ "enhanced-resolve": "^5.12.0",+ "eslint-module-utils": "^2.7.4",+ "fast-glob": "^3.3.1",+ "get-tsconfig": "^4.5.0",+ "is-core-module": "^2.11.0",+ "is-glob": "^4.0.3"+ },+ "engines": {+ "node": "^14.18.0 || >=16.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/unts/projects/eslint-import-resolver-ts"+ },+ "peerDependencies": {+ "eslint": "*",+ "eslint-plugin-import": "*"+ }+ },+ "apps/database-new/node_modules/eslint-plugin-react": {+ "version": "7.33.2",+ "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.33.2.tgz",+ "integrity": "sha512-73QQMKALArI8/7xGLNI/3LylrEYrlKZSb5C9+q3OtOewTnMQi5cT+aE9E41sLCmli3I9PGGmD1yiZydyo4FEPw==",+ "dependencies": {+ "array-includes": "^3.1.6",+ "array.prototype.flatmap": "^1.3.1",+ "array.prototype.tosorted": "^1.1.1",+ "doctrine": "^2.1.0",+ "es-iterator-helpers": "^1.0.12",+ "estraverse": "^5.3.0",+ "jsx-ast-utils": "^2.4.1 || ^3.0.0",+ "minimatch": "^3.1.2",+ "object.entries": "^1.1.6",+ "object.fromentries": "^2.0.6",+ "object.hasown": "^1.1.2",+ "object.values": "^1.1.6",+ "prop-types": "^15.8.1",+ "resolve": "^2.0.0-next.4",+ "semver": "^6.3.1",+ "string.prototype.matchall": "^4.0.8"+ },+ "engines": {+ "node": ">=4"+ },+ "peerDependencies": {+ "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8"+ }+ },+ "apps/database-new/node_modules/glob": {+ "version": "7.1.7",+ "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.7.tgz",+ "integrity": "sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==",+ "dependencies": {+ "fs.realpath": "^1.0.0",+ "inflight": "^1.0.4",+ "inherits": "2",+ "minimatch": "^3.0.4",+ "once": "^1.3.0",+ "path-is-absolute": "^1.0.0"+ },+ "engines": {+ "node": "*"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },"apps/database-new/node_modules/lucide-react": {"version": "0.292.0","license": "ISC",@@ -142,6 +399,78 @@"react": "^16.5.1 || ^17.0.0 || ^18.0.0"}},+ "apps/database-new/node_modules/next": {+ "version": "14.0.3",+ "resolved": "https://registry.npmjs.org/next/-/next-14.0.3.tgz",+ "integrity": "sha512-AbYdRNfImBr3XGtvnwOxq8ekVCwbFTv/UJoLwmaX89nk9i051AEY4/HAWzU0YpaTDw8IofUpmuIlvzWF13jxIw==",+ "dependencies": {+ "@next/env": "14.0.3",+ "@swc/helpers": "0.5.2",+ "busboy": "1.6.0",+ "caniuse-lite": "^1.0.30001406",+ "postcss": "8.4.31",+ "styled-jsx": "5.1.1",+ "watchpack": "2.4.0"+ },+ "bin": {+ "next": "dist/bin/next"+ },+ "engines": {+ "node": ">=18.17.0"+ },+ "optionalDependencies": {+ "@next/swc-darwin-arm64": "14.0.3",+ "@next/swc-darwin-x64": "14.0.3",+ "@next/swc-linux-arm64-gnu": "14.0.3",+ "@next/swc-linux-arm64-musl": "14.0.3",+ "@next/swc-linux-x64-gnu": "14.0.3",+ "@next/swc-linux-x64-musl": "14.0.3",+ "@next/swc-win32-arm64-msvc": "14.0.3",+ "@next/swc-win32-ia32-msvc": "14.0.3",+ "@next/swc-win32-x64-msvc": "14.0.3"+ },+ "peerDependencies": {+ "@opentelemetry/api": "^1.1.0",+ "react": "^18.2.0",+ "react-dom": "^18.2.0",+ "sass": "^1.3.0"+ },+ "peerDependenciesMeta": {+ "@opentelemetry/api": {+ "optional": true+ },+ "sass": {+ "optional": true+ }+ }+ },+ "apps/database-new/node_modules/next/node_modules/postcss": {+ "version": "8.4.31",+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz",+ "integrity": "sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==",+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/postcss/"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/postcss"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "dependencies": {+ "nanoid": "^3.3.6",+ "picocolors": "^1.0.0",+ "source-map-js": "^1.0.2"+ },+ "engines": {+ "node": "^10 || ^12 || >=14"+ }+ },"apps/database-new/node_modules/openai": {"version": "4.19.0","license": "Apache-2.0",@@ -187,6 +516,22 @@"node": "^10 || ^12 || >=14"}},+ "apps/database-new/node_modules/resolve": {+ "version": "2.0.0-next.5",+ "resolved": "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.5.tgz",+ "integrity": "sha512-U7WjGVG9sH8tvjW5SmGbQuui75FiyjAX72HX15DwBBwF9dNiQZRQAg9nnPhYy+TUnE0+VcrttuvNI8oSxZcocA==",+ "dependencies": {+ "is-core-module": "^2.13.0",+ "path-parse": "^1.0.7",+ "supports-preserve-symlinks-flag": "^1.0.0"+ },+ "bin": {+ "resolve": "bin/resolve"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },"apps/database-new/node_modules/sql-formatter": {"version": "13.1.0","license": "MIT",