Update next-connect middleware to return next() to fix error handling

This commit is contained in:
Aaron William Po
2023-07-17 15:44:32 -04:00
parent 8ed798ce60
commit bfbf7c3cf3
9 changed files with 167 additions and 50 deletions

View File

@@ -15,44 +15,44 @@
"@hapi/iron": "^7.0.1",
"@headlessui/react": "^1.7.15",
"@headlessui/tailwindcss": "^0.1.3",
"@hookform/resolvers": "^3.1.0",
"@mapbox/mapbox-sdk": "^0.15.1",
"@mapbox/search-js-core": "^1.0.0-beta.16",
"@mapbox/search-js-react": "^1.0.0-beta.16",
"@next/bundle-analyzer": "^13.4.4",
"@prisma/client": "^4.15.0",
"@react-email/components": "^0.0.6",
"@hookform/resolvers": "^3.1.1",
"@mapbox/mapbox-sdk": "^0.15.2",
"@mapbox/search-js-core": "^1.0.0-beta.17",
"@mapbox/search-js-react": "^1.0.0-beta.17",
"@next/bundle-analyzer": "^13.4.10",
"@prisma/client": "^5.0.0",
"@react-email/components": "^0.0.7",
"@react-email/render": "^0.0.7",
"@react-email/tailwind": "^0.0.8",
"@vercel/analytics": "^1.0.1",
"argon2": "^0.30.3",
"cloudinary": "^1.37.0",
"cloudinary": "^1.37.3",
"cookie": "^0.5.0",
"date-fns": "^2.30.0",
"dotenv": "^16.1.3",
"jsonwebtoken": "^9.0.0",
"dotenv": "^16.3.1",
"jsonwebtoken": "^9.0.1",
"lodash": "^4.17.21",
"mapbox-gl": "^2.15.0",
"multer": "^1.4.5-lts.1",
"multer-storage-cloudinary": "^4.0.0",
"next": "^13.4.4",
"next": "^13.4.10",
"next-connect": "^1.0.0-next.3",
"passport": "^0.6.0",
"passport-local": "^1.0.0",
"pino": "^8.14.1",
"pino-pretty": "^10.0.0",
"pino-pretty": "^10.0.1",
"react": "^18.2.0",
"react-daisyui": "^3.1.2",
"react-daisyui": "^4.0.0",
"react-dom": "^18.2.0",
"react-email": "^1.9.3",
"react-hook-form": "^7.44.3",
"react-email": "^1.9.4",
"react-hook-form": "^7.45.2",
"react-hot-toast": "^2.4.1",
"react-icons": "^4.9.0",
"react-intersection-observer": "^9.4.4",
"react-map-gl": "^7.0.25",
"react-icons": "^4.10.1",
"react-intersection-observer": "^9.5.2",
"react-map-gl": "^7.1.2",
"react-responsive-carousel": "^3.2.23",
"sparkpost": "^2.1.4",
"swr": "^2.1.5",
"swr": "^2.2.0",
"theme-change": "^2.5.0",
"zod": "^3.21.4"
},
@@ -63,31 +63,31 @@
"@types/lodash": "^4.14.195",
"@types/mapbox__mapbox-sdk": "^0.13.4",
"@types/multer": "^1.4.7",
"@types/node": "^20.2.5",
"@types/node": "^20.4.2",
"@types/passport-local": "^1.0.35",
"@types/react": "^18.2.8",
"@types/react-dom": "^18.2.4",
"@types/react": "^18.2.15",
"@types/react-dom": "^18.2.7",
"@types/sparkpost": "^2.1.5",
"@vercel/fetch": "^6.2.0",
"@vercel/fetch": "^7.0.0",
"autoprefixer": "^10.4.14",
"daisyui": "^3.0.0",
"daisyui": "^3.2.1",
"dotenv-cli": "^7.2.1",
"eslint": "^8.41.0",
"eslint": "^8.45.0",
"eslint-config-airbnb-base": "15.0.0",
"eslint-config-airbnb-typescript": "17.0.0",
"eslint-config-next": "^13.4.4",
"eslint-config-airbnb-typescript": "17.1.0",
"eslint-config-next": "^13.4.10",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-react": "^7.32.2",
"onchange": "^7.1.0",
"postcss": "^8.4.24",
"prettier": "^2.8.8",
"postcss": "^8.4.26",
"prettier": "^3.0.0",
"prettier-plugin-jsdoc": "^0.4.2",
"prettier-plugin-tailwindcss": "^0.3.0",
"prisma": "^4.15.0",
"tailwindcss": "^3.3.2",
"tailwindcss-animate": "^1.0.5",
"prettier-plugin-tailwindcss": "^0.4.1",
"prisma": "^5.0.0",
"tailwindcss": "^3.3.3",
"tailwindcss-animate": "^1.0.6",
"ts-node": "^10.9.1",
"typescript": "^4.9.0"
"typescript": "^5.1.6"
},
"prisma": {
"schema": "./src/prisma/schema.prisma",