I am following this link GitHub - trpc/examples-next-prisma-websockets-starter: 🏓 tRPC Next.js WebSocket Starter to deploy an app with TRPC and websocket. My render.yaml is as follows:
services:
- type: web
name: stella-shopsage-trpc
env: node
plan: free
# NODE_ENV is development here in order for npm to install dev deps
buildCommand: NODE_ENV=development npm install && npm build
startCommand: npm start
healthCheckPath: /api/trpc/healthcheck
# Preview Environment Initialization
# initialDeployHook: |
# npm run db-seed
envVars:
- key: NODE_ENV
value: production
# - key: DATABASE_URL
# fromDatabase:
# name: stella-shopsage-trpc-db
# property: connectionString
- fromGroup: stella-shopsage-trpc
# databases:
# - name: stella-shopsage-trpc-db
# plan: free
# # plan: starter
and the failed log is as follows:
Error: Cannot find module '/opt/render/project/src/dist/server/prodServer.js'