docker compose 部署的时候出现 werss-web-1 出现如下问题:
>
[email protected] start
> next start
▲ Next.js 14.1.0
- Local: http://localhost:3000
Error: Specified basePath has to start with a /, found "'/'"
at assignDefaults (/app/web/node_modules/.pnpm/
[email protected][email protected][email protected]/node_modules/next/dist/server/config.js:308:19)
at loadConfig (/app/web/node_modules/.pnpm/
[email protected][email protected][email protected]/node_modules/next/dist/server/config.js:768:32)
at async initialize (/app/web/node_modules/.pnpm/
[email protected][email protected][email protected]/node_modules/next/dist/server/lib/router-server.js:51:20)
at async Server.<anonymous> (/app/web/node_modules/.pnpm/
[email protected][email protected][email protected]/node_modules/next/dist/server/lib/start-server.js:246:36)
Error: Specified basePath has to start with a /, found "'/'"
at assignDefaults (/app/web/node_modules/.pnpm/
[email protected][email protected][email protected]/node_modules/next/dist/server/config.js:308:19)
at loadConfig (/app/web/node_modules/.pnpm/
[email protected][email protected][email protected]/node_modules/next/dist/server/config.js:768:32)
at async initialize (/app/web/node_modules/.pnpm/
[email protected][email protected][email protected]/node_modules/next/dist/server/lib/router-server.js:51:20)
at async Server.<anonymous> (/app/web/node_modules/.pnpm/
[email protected][email protected][email protected]/node_modules/next/dist/server/lib/start-server.js:246:36)