@panoptic-it-solutions/coolify-setup 1.1.5 → 1.1.7

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.
@@ -37,12 +37,15 @@ function generateNextjsDockerfile(options) {
37
37
 
38
38
  # Build the migration bundle (single JS file with all deps baked in)
39
39
  # 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` : '';
40
+ RUN ${esbuildCmd} lib/db/migrate.ts --bundle --platform=node --target=node22 --outfile=lib/db/migrate.bundle.js --external:dotenv --external:postgres` : '';
41
41
  const migrationCopy = includePostgres ? `
42
42
 
43
43
  # Copy database migrations and bundled migration script
44
44
  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` : '';
45
+ COPY --from=builder --chown=nextjs:nodejs /app/lib/db/migrate.bundle.js ./lib/db/migrate.bundle.js
46
+
47
+ # Copy postgres module for migration script (externalized from bundle)
48
+ COPY --from=builder --chown=nextjs:nodejs /app/node_modules/.pnpm/postgres@*/node_modules/postgres ./node_modules/postgres` : '';
46
49
  return `# syntax=docker.io/docker/dockerfile:1
47
50
 
48
51
  FROM node:22-alpine AS base
@@ -88,6 +91,10 @@ ENV KINDE_POST_LOGOUT_REDIRECT_URL=http://localhost:3000
88
91
  ENV KINDE_POST_LOGIN_REDIRECT_URL=http://localhost:3000
89
92
  ENV KINDE_SITE_URL=http://localhost:3000
90
93
 
94
+ # Upstash Redis placeholder values for build
95
+ ENV UPSTASH_REDIS_REST_URL=https://placeholder.upstash.io
96
+ ENV UPSTASH_REDIS_REST_TOKEN=placeholder
97
+
91
98
  # Build the application
92
99
  RUN ${buildCmd}
93
100
  ${migrationBundle}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panoptic-it-solutions/coolify-setup",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "description": "CLI tool for setting up Coolify deployment on Panoptic projects",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",