Build fails due to middleware
`
Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
- info Creating an optimized production build
- info Compiled successfully
- info Collecting page data ...ReferenceError: self is not defined
at Object.<anonymous> (/home/tim/Projets/caroster/frontend/.next/server/pages/middleware.js:1:1)
at Module._compile (node:internal/modules/cjs/loader:1256:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
at Module.load (node:internal/modules/cjs/loader:1119:32)
at Module._load (node:internal/modules/cjs/loader:960:12)
at Module.require (node:internal/modules/cjs/loader:1143:19)
at require (node:internal/modules/cjs/helpers:119:18)
at requirePage (/home/tim/Projets/caroster/frontend/node_modules/next/dist/server/require.js:112:75)
at /home/tim/Projets/caroster/frontend/node_modules/next/dist/server/load-components.js:80:84
at async loadComponentsImpl (/home/tim/Projets/caroster/frontend/node_modules/next/dist/server/load-components.js:80:26)
> Build error occurred
Error: Failed to collect page data for /middleware
at /home/tim/Projets/caroster/frontend/node_modules/next/dist/build/utils.js:1158:15 {
type: 'Error'
}
`
Edited by Simon Mulquin