I was able to build the image successfully on my local machine and the standalone folder was there when i inspected the build but on the bitbucket pipeline, it keeps saying the folder is not found. Besides, this passes sometimes after several trials but of recent, it is not even working again.
Hello @Samuel Odebunmi , and welcome to the Community!
I'm not sure if I fully understand your issue, so I would like to ask for a few more details about your setup :
With this information we'll be better equipped to assist you further on this investigation. Thank you, @Samuel Odebunmi !
Patrik S
Same for me, but not only the standalone folder in .next other folders like static, etc. are also missing.
It also takes like 8 Minutes for a fresh nextjs app created with "npx create-next-app@latest"
I increased the memory to 2x, but it also does not seem to solve the issue.
pipelines:
branches:
develop:
- step:
size: 2x
services:
- docker
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Same here. Any news on that?
Or the pipeline hangs in the build (for more than 1 hour sometimes!) until I manually cancel it. OR the pipeline error out, but the NextJs folders like the .next/standalone and static can not be found. They simply are not there, and no errors is shown in the log window.
I could "cat next.config.mjs" file and the output I see in the console is correctly set to "standalone". What the heck could happen, BitBucket?
I'll test this image in GitHub Actions. I'm pretty sure it will work flawlessly, as it works on my local machine.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This fixed it for me:
options:
docker: true
size: 2x
max-time: 10
definitions:
services:
docker:
memory: 4096
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you, @Eugen Kochtyrew
This worked for me too!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.