Packaging Pangolin for Nix #1574

Closed
opened 2026-04-05 19:35:27 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @jackrosenberg on 4/24/2025

Hello,
I am packaging this for Nix, and i am having some trouble on the final step. The migrations, API and Internal servers start just fine, but the nextjs server is having some trouble finding a production build.

node[393386] [warn]: Email SMTP configuration is missing. Emails will not be sent.
node[393386]: 2025-04-23T13:43:18.243Z [info]: API server is running on http://localhost:3000
node[393386]: 2025-04-23T13:43:18.243Z [info]: Internal server is running on http://localhost:3001
node[393386]: Error: Could not find a production build in the '.next' directory. Try building your app with 'next build' before starting the production server. https://>
node[393386]:     at async createNextServer (../../../nix/store/fgmdb49h76bhl5jkw78fhz00wnxci1fv-pangolin-frontend-1.2.0/dist/server.mjs:20576:3)
node[393386]:     at async startServers (../../../nix/store/fgmdb49h76bhl5jkw78fhz00wnxci1fv-pangolin-frontend-1.2.0/dist/server.mjs:21635:22)

What should the final folder structure look like for the production build? Mine currently looks like this:

result/
├── dist  
├── node_modules 
├── .next
│    ├── app-build-manifest.json
│    ├── app-path-routes-manifest.json
│    ├── BUILD_ID
│    ├── build-manifest.json
│    ├── package.json
│    ├── prerender-manifest.json
│    ├── react-loadable-manifest.json
│    ├── required-server-files.json
│    ├── routes-manifest.json
│    ├── server
│    └── static
├── package.json 
├── package-lock.json 
├── public 
└── standalone

Any help is welcome!

*Originally created by @jackrosenberg on 4/24/2025* Hello, I am packaging this for Nix, and i am having some trouble on the final step. The migrations, API and Internal servers start just fine, but the nextjs server is having some trouble finding a production build. ``` node[393386] [warn]: Email SMTP configuration is missing. Emails will not be sent. node[393386]: 2025-04-23T13:43:18.243Z [info]: API server is running on http://localhost:3000 node[393386]: 2025-04-23T13:43:18.243Z [info]: Internal server is running on http://localhost:3001 node[393386]: Error: Could not find a production build in the '.next' directory. Try building your app with 'next build' before starting the production server. https://> node[393386]: at async createNextServer (../../../nix/store/fgmdb49h76bhl5jkw78fhz00wnxci1fv-pangolin-frontend-1.2.0/dist/server.mjs:20576:3) node[393386]: at async startServers (../../../nix/store/fgmdb49h76bhl5jkw78fhz00wnxci1fv-pangolin-frontend-1.2.0/dist/server.mjs:21635:22) ``` What should the final folder structure look like for the production build? Mine currently looks like this: ``` result/ ├── dist ├── node_modules ├── .next │  ├── app-build-manifest.json │  ├── app-path-routes-manifest.json │  ├── BUILD_ID │  ├── build-manifest.json │  ├── package.json │  ├── prerender-manifest.json │  ├── react-loadable-manifest.json │  ├── required-server-files.json │  ├── routes-manifest.json │  ├── server │  └── static ├── package.json ├── package-lock.json ├── public └── standalone ``` Any help is welcome!
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/pangolin#1574