Add database reset script and update package.json for db commands; refactor middleware for CORS support and error handling in parks page

This commit is contained in:
pacnpal
2025-02-23 18:09:27 -05:00
parent c9ab1f40ed
commit 046257d06c
6 changed files with 255 additions and 279 deletions

View File

@@ -7,19 +7,14 @@
"build": "next build",
"start": "next start",
"lint": "next lint",
"prisma:studio": "prisma studio",
"db:reset": "ts-node src/scripts/db-reset.ts",
"db:seed": "ts-node prisma/seed.ts",
"prisma:generate": "prisma generate",
"prisma:migrate": "prisma migrate dev",
"db:reset": "prisma migrate reset --force",
"db:seed": "ts-node --compiler-options {\"module\":\"CommonJS\"} prisma/seed.ts"
},
"prisma": {
"seed": "ts-node --compiler-options {\"module\":\"CommonJS\"} prisma/seed.ts"
"prisma:migrate": "prisma migrate deploy"
},
"dependencies": {
"@prisma/client": "^6.4.1",
"lodash": "^4.17.21",
"next": "^15.1.7",
"@prisma/client": "^5.8.0",
"next": "14.1.0",
"react": "^18",
"react-dom": "^18"
},
@@ -31,7 +26,7 @@
"eslint": "^8",
"eslint-config-next": "14.1.0",
"postcss": "^8",
"prisma": "^6.4.1",
"prisma": "^5.8.0",
"tailwindcss": "^3.3.0",
"ts-node": "^10.9.2",
"typescript": "^5"