Fix Prisma import path in db.js and update allowedDevOrigins format

This commit is contained in:
CanbiZ
2025-11-28 13:18:29 +01:00
parent 74030b5806
commit c57586acae
2 changed files with 22 additions and 22 deletions

View File

@@ -20,27 +20,27 @@ const config = {
},
// Allow cross-origin requests from local network ranges
allowedDevOrigins: [
'http://localhost:3000',
'http://127.0.0.1:3000',
'http://[::1]:3000',
'http://10.*',
'http://172.16.*',
'http://172.17.*',
'http://172.18.*',
'http://172.19.*',
'http://172.20.*',
'http://172.21.*',
'http://172.22.*',
'http://172.23.*',
'http://172.24.*',
'http://172.25.*',
'http://172.26.*',
'http://172.27.*',
'http://172.28.*',
'http://172.29.*',
'http://172.30.*',
'http://172.31.*',
'http://192.168.*',
'localhost:3000',
'127.0.0.1:3000',
'[::1]:3000',
'10.*',
'172.16.*',
'172.17.*',
'172.18.*',
'172.19.*',
'172.20.*',
'172.21.*',
'172.22.*',
'172.23.*',
'172.24.*',
'172.25.*',
'172.26.*',
'172.27.*',
'172.28.*',
'172.29.*',
'172.30.*',
'172.31.*',
'192.168.*',
],
turbopack: {

View File

@@ -1,5 +1,5 @@
import 'dotenv/config'
import { PrismaClient } from '../../prisma/generated/prisma'
import { PrismaClient } from '../../prisma/generated/prisma/client'
import { PrismaBetterSqlite3 } from '@prisma/adapter-better-sqlite3'
const globalForPrisma = globalThis;