@panoptic-it-solutions/coolify-setup 1.1.8 → 1.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -33,16 +33,21 @@ function generateNextjsDockerfile(options) {
33
33
  : '';
34
34
  // For Next.js standalone, we bundle the migration script with esbuild at build time
35
35
  // This avoids module resolution issues in the minimal standalone container
36
+ // postgres must be externalized due to pnpm's symlink structure causing resolution issues
36
37
  const migrationBundle = includePostgres ? `
37
38
 
38
39
  # Build the migration bundle (single JS file with all deps baked in)
39
40
  # This avoids module resolution issues in the standalone container
40
- RUN ${esbuildCmd} lib/db/migrate.ts --bundle --platform=node --target=node22 --outfile=lib/db/migrate.bundle.js --external:dotenv` : '';
41
+ # postgres is externalized and copied separately due to pnpm symlink resolution issues
42
+ RUN ${esbuildCmd} lib/db/migrate.ts --bundle --platform=node --target=node22 --outfile=lib/db/migrate.bundle.js --external:dotenv --external:postgres` : '';
41
43
  const migrationCopy = includePostgres ? `
42
44
 
43
45
  # Copy database migrations and bundled migration script
44
46
  COPY --from=builder --chown=nextjs:nodejs /app/lib/db/migrations ./lib/db/migrations
45
- COPY --from=builder --chown=nextjs:nodejs /app/lib/db/migrate.bundle.js ./lib/db/migrate.bundle.js` : '';
47
+ COPY --from=builder --chown=nextjs:nodejs /app/lib/db/migrate.bundle.js ./lib/db/migrate.bundle.js
48
+
49
+ # Copy postgres module for migration script (externalized from bundle due to pnpm symlinks)
50
+ COPY --from=builder --chown=nextjs:nodejs /app/node_modules/.pnpm/postgres@*/node_modules/postgres ./node_modules/postgres` : '';
46
51
  return `# syntax=docker.io/docker/dockerfile:1
47
52
 
48
53
  FROM node:22-alpine AS base
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panoptic-it-solutions/coolify-setup",
3
- "version": "1.1.8",
3
+ "version": "1.1.9",
4
4
  "description": "CLI tool for setting up Coolify deployment on Panoptic projects",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",