Преглед изворни кода

chore(config): add prisma generate script to package.json

vidane пре 6 месеци
родитељ
комит
880a806a06
3 измењених фајлова са 25 додато и 3 уклоњено
  1. 10 1
      .env.local
  2. 12 0
      next.config.ts
  3. 3 2
      package.json

+ 10 - 1
.env.local

@@ -6,4 +6,13 @@ KINDE_SITE_URL=http://localhost:3000
 KINDE_POST_LOGOUT_REDIRECT_URL=http://localhost:3000
 
 # PostgreSQL Database Configuration
-DATABASE_URL="postgresql://postgres:postgres@localhost:5432/vtorio?schema=public"
+#DATABASE_URL="postgresql://postgres:postgres@localhost:5432/vtorio?schema=public"
+DATABASE_URL=postgresql://root:post.Acc.967@vixflix.online:5432/vtoriodb?schema=public
+
+# Kinde free tier limitations
+# 2 custom roles and 10 permissions
+# 10 feature flags
+# 5 custom properties
+# 1 webhook
+# Customizable session duration
+# 2 environments (production and development) 

+ 12 - 0
next.config.ts

@@ -10,6 +10,18 @@ const nextConfig: NextConfig = {
         port: '',
         pathname: '/avatar/**',
       },
+      {
+        protocol: 'https',
+        hostname: 'lh3.googleusercontent.com',
+        port: '',
+        pathname: '/**',
+      },
+      {
+        protocol: 'https',
+        hostname: 'googleusercontent.com',
+        port: '',
+        pathname: '/**',
+      }
     ],
   },
   experimental: {

+ 3 - 2
package.json

@@ -6,7 +6,8 @@
     "dev": "next dev --turbopack",
     "build": "next build",
     "start": "next start",
-    "lint": "next lint"
+    "lint": "next lint",
+    "prisma:generate": "prisma generate"
   },
   "dependencies": {
     "@hookform/resolvers": "^5.1.1",
@@ -59,4 +60,4 @@
     "tsx": "^4.20.3",
     "typescript": "^5"
   }
-}
+}