fixes
This commit is contained in:
@@ -1,13 +1,15 @@
|
||||
import express from 'express'
|
||||
import dotenv from 'dotenv'
|
||||
dotenv.config()
|
||||
|
||||
import cors from 'cors'
|
||||
|
||||
const app = express()
|
||||
const port = 5000
|
||||
|
||||
app.use(express.json())
|
||||
app.use(cors({ origin: 'http://localhost:5173' }))
|
||||
dotenv.config()
|
||||
app.use(cors())
|
||||
|
||||
|
||||
import { prisma } from './prisma.js'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user