My build settings:
Then when building the build bot ignores that it should stay in the base directory entirely:
10:09:21 AM: ❯ Current directory
10:09:21 AM: /opt/build/repo
Then obviously an error occurs when it cannot find the production files in a directory that I haven’t specified should exist:
Error: The directory “/opt/build/repo/dist/packages/dam-web” does not contain a Next.js production build. Perhaps the build command was not run, or you specified the wrong publish directory.
The build is failing because the build bot does not stay in the base directory as I have specified in the build settings, it instead goes to /opt/build/repo/dist/packages/dam-web to look for a production build, which does not exist, because I have specified my output directory as only /dist/packages/dam-web from the base directory. What am I missing that makes the build bot ignore my build settings?