middleware works in dev environment, but not when I compile it to prod env
Unanswered
Gharial posted this in #help-forum
GharialOP
title.
I'm not sure what im doing wrong.
I'm not sure what im doing wrong.
3 Replies
GharialOP
directory
dev": "cross-env PAYLOAD_CONFIG_PATH=src/payload.config.ts nodemon",and
yarn build
"build": "cross-env NODE_ENV=production yarn generate:types && yarn build:payload && yarn build:server && yarn copyfiles && yarn build:next",