Skip to content
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

Error UndefinedVar $NIXPACKS_PATH on PayloadCMS NextJS Build #1268

Closed
1 task done
ardiansyaherwin opened this issue Jan 19, 2025 · 3 comments
Closed
1 task done

Error UndefinedVar $NIXPACKS_PATH on PayloadCMS NextJS Build #1268

ardiansyaherwin opened this issue Jan 19, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@ardiansyaherwin
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

I’m working on a PayloadCMS project hosted on a Coolify instance. Without making any changes to the Nixpacks or Coolify configuration, the build process has started failing unexpectedly.

Here’s the error message I’m encountering:

48.64 > Build failed because of webpack errors
48.83  ELIFECYCLE  Command failed with exit code 1.
------
 1 warning found (use docker --debug to expand):
 - UndefinedVar: Usage of undefined variable '$NIXPACKS_PATH' (line 18)
Dockerfile:24
--------------------
  22 |     # build phase
  23 |     COPY . /app/.
  24 | >>> RUN  pnpm run build
  25 |     
  26 |     
--------------------
ERROR: failed to solve: process "/bin/bash -ol pipefail -c pnpm run build" did not complete successfully: exit code: 1
Deployment failed. Removing the new version of your application.

To reproduce

No response

Expected behavior

No response

Environment

OS: Ubuntu Server

@ardiansyaherwin ardiansyaherwin added the bug Something isn't working label Jan 19, 2025
@notflip
Copy link

notflip commented Jan 21, 2025

I've got some issues with nixpacks as well, it seems like my nixpacks.toml is being ignored. Do you have a custom file or just the default setup?

@jaredLunde
Copy link
Contributor

It appears this may be a Coolify issue: coollabsio/coolify#2653 (comment)

@ardiansyaherwin
Copy link
Author

solved here coollabsio/coolify#4871 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants