```There was a problem building the "Site" NextjsS...
# help
Copy code
There was a problem building the "Site" NextjsSite.
Failed to store notices in the cache: Error: ENOENT: no such file or directory, open '/root/.cdk/cache/notices.json'
Failed to get tree.json file: Error: .build/cdk.out/tree.json: ENOENT: no such file or directory, open '.build/cdk.out/tree.json'
There was an error synthesizing your app.
error Command failed with exit code 1.
info Visit <https://yarnpkg.com/en/docs/cli/run> for documentation about this command.
ERROR: spawn ./node_modules/.bin/next ENOENT
Here is some other logs before this:
Copy code
Toolkit stack: CDKToolkit
Setting "CDK_DEFAULT_REGION" environment variable to us-east-1
Resolving default credentials
Looking up default account ID from STS
Unable to determine the default AWS account: InvalidClientTokenId: The security token included in the request is invalid.
Hey @Karolis Stulgys, can you share a link to the build on SEED?
@Frank any ideas?
@Frank any updates?
I believe I'm running into the same issue, @Karolis Stulgys, will let you know if I manage to progress.
@Karolis Stulgys think I got it. my seed.run file now contains the following:
Copy code
    - cd frontend && npm install

    - n 14.17.4
Painfully I had the before_build steps in my before_compile steps for the last 2 hours, so I was so close yet so far.
Copy code
:white_check_mark: Build v12 successfully deployed in 10m 20s. Used 1 build minute.
Thanks for posting the solution @Scott, before_build worked like a charm. Hopefully Seed will auto-detect Next & add that automatically in future?
@Tyler Renelle Glad to hear that worked for you, I noticed it doesn't work for Amplify currently, but if you're not using Amplify then should be golden