Fix Prisma import path in db.js and update allowedDevOrigins format
This commit is contained in:
@@ -20,27 +20,27 @@ const config = {
|
|||||||
},
|
},
|
||||||
// Allow cross-origin requests from local network ranges
|
// Allow cross-origin requests from local network ranges
|
||||||
allowedDevOrigins: [
|
allowedDevOrigins: [
|
||||||
'http://localhost:3000',
|
'localhost:3000',
|
||||||
'http://127.0.0.1:3000',
|
'127.0.0.1:3000',
|
||||||
'http://[::1]:3000',
|
'[::1]:3000',
|
||||||
'http://10.*',
|
'10.*',
|
||||||
'http://172.16.*',
|
'172.16.*',
|
||||||
'http://172.17.*',
|
'172.17.*',
|
||||||
'http://172.18.*',
|
'172.18.*',
|
||||||
'http://172.19.*',
|
'172.19.*',
|
||||||
'http://172.20.*',
|
'172.20.*',
|
||||||
'http://172.21.*',
|
'172.21.*',
|
||||||
'http://172.22.*',
|
'172.22.*',
|
||||||
'http://172.23.*',
|
'172.23.*',
|
||||||
'http://172.24.*',
|
'172.24.*',
|
||||||
'http://172.25.*',
|
'172.25.*',
|
||||||
'http://172.26.*',
|
'172.26.*',
|
||||||
'http://172.27.*',
|
'172.27.*',
|
||||||
'http://172.28.*',
|
'172.28.*',
|
||||||
'http://172.29.*',
|
'172.29.*',
|
||||||
'http://172.30.*',
|
'172.30.*',
|
||||||
'http://172.31.*',
|
'172.31.*',
|
||||||
'http://192.168.*',
|
'192.168.*',
|
||||||
],
|
],
|
||||||
|
|
||||||
turbopack: {
|
turbopack: {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import 'dotenv/config'
|
import 'dotenv/config'
|
||||||
import { PrismaClient } from '../../prisma/generated/prisma'
|
import { PrismaClient } from '../../prisma/generated/prisma/client'
|
||||||
import { PrismaBetterSqlite3 } from '@prisma/adapter-better-sqlite3'
|
import { PrismaBetterSqlite3 } from '@prisma/adapter-better-sqlite3'
|
||||||
|
|
||||||
const globalForPrisma = globalThis;
|
const globalForPrisma = globalThis;
|
||||||
|
|||||||
Reference in New Issue
Block a user