-
Notifications
You must be signed in to change notification settings - Fork 26.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot read property 'replace' of undefined when running Bitbucket Pipelines #9720
Comments
My bad. |
I need to reopen this as there should not be an issue with |
Could it be possible that .env file in remote repository is different from that in your local environment ? |
Opened a PR to show a better error message here: #9759 The issue is that you're providing |
You are correct. How stupid of me. There is not a
|
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Bug report
Describe the bug
Build fails when creating an artifact in Bitbucket using the node image: node:10.16.3.
The pipeline yaml used:
Running a local
yarn build
succeeds but not when on pipelines. The error points me toassetPrefix:nextConfig.assetPrefix.replace(/\/$/,'')
which I found on line 13**The error I got:
My next.config.js file:
Next.js version: 9.1.5
Thanks.
The text was updated successfully, but these errors were encountered: