@powerhousedao/switchboard 4.1.0-dev.38 → 4.1.0-dev.39

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ ## 4.1.0-dev.39 (2025-09-02)
2
+
3
+ ### 🩹 Fixes
4
+
5
+ - **switchboard:** added db push to switchboard entrypoint ([d109e4afb](https://github.com/powerhouse-inc/powerhouse/commit/d109e4afb))
6
+
7
+ ### ❤️ Thank You
8
+
9
+ - Frank
10
+
1
11
  ## 4.1.0-dev.38 (2025-08-30)
2
12
 
3
13
  ### 🚀 Features
package/Dockerfile CHANGED
@@ -37,7 +37,7 @@ ENV PH_SWITCHBOARD_PORT=$PORT
37
37
  ARG TAG=latest
38
38
  ENV TAG=$TAG
39
39
 
40
- RUN pnpm add -g ph-cmd@$TAG
40
+ RUN pnpm add -g ph-cmd@$TAG prisma
41
41
  RUN if [[ "$TAG" == *"dev"* ]]; then \
42
42
  ph init project --dev --package-manager pnpm; \
43
43
  elif [[ "$TAG" == *"staging"* ]]; then \
package/entrypoint.sh CHANGED
@@ -11,6 +11,12 @@ if [ ! -z "$PH_PACKAGES" ]; then
11
11
  done
12
12
  fi
13
13
 
14
+ # Check if DATABASE_URL starts with postgres and run Prisma db push
15
+ if [ ! -z "$DATABASE_URL" ] && echo "$DATABASE_URL" | grep -q "^postgres"; then
16
+ echo "[entrypoint] DATABASE_URL starts with postgres, running Prisma db push..."
17
+ prisma db push --schema node_modules/document-drive/dist/prisma/schema.prisma
18
+ fi
19
+
14
20
  echo "[entrypoint] Starting switchboard..."
15
21
  export SWITCHBOARD_PORT="${PORT:-4001}"
16
22
  ph switchboard --port $SWITCHBOARD_PORT
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@powerhousedao/switchboard",
3
3
  "type": "module",
4
- "version": "4.1.0-dev.38",
4
+ "version": "4.1.0-dev.39",
5
5
  "main": "dist/src/index.js",
6
6
  "exports": {
7
7
  ".": "./dist/src/index.js",
@@ -29,10 +29,10 @@
29
29
  "express": "^4.21.2",
30
30
  "graphql": "^16.11.0",
31
31
  "redis": "^4.7.0",
32
- "@powerhousedao/config": "4.1.0-dev.38",
33
- "@powerhousedao/reactor-api": "4.1.0-dev.38",
34
- "document-model": "4.1.0-dev.38",
35
- "document-drive": "4.1.0-dev.38"
32
+ "@powerhousedao/config": "4.1.0-dev.39",
33
+ "@powerhousedao/reactor-api": "4.1.0-dev.39",
34
+ "document-drive": "4.1.0-dev.39",
35
+ "document-model": "4.1.0-dev.39"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@types/express": "^5.0.0",