This probably fixes the build that I broke in https://github.com/OpenPipe/OpenPipe/pull/149. However, there's a small chance that it fixes it enough to deploy, but not enough to actually work. That would be bad, so not merging until I have time to monitor the deploy.
39 lines
999 B
YAML
39 lines
999 B
YAML
databases:
|
|
- name: querykey-prod
|
|
databaseName: querykey_prod
|
|
user: querykey
|
|
plan: starter
|
|
|
|
services:
|
|
- type: web
|
|
name: querykey-prod-web
|
|
env: docker
|
|
dockerfilePath: ./app/Dockerfile
|
|
dockerContext: .
|
|
plan: standard
|
|
domains:
|
|
- app.openpipe.ai
|
|
envVars:
|
|
- key: NODE_ENV
|
|
value: production
|
|
- key: DATABASE_URL
|
|
fromDatabase:
|
|
name: querykey-prod
|
|
property: connectionString
|
|
- fromGroup: querykey-prod
|
|
- key: NEXT_PUBLIC_SOCKET_URL
|
|
value: https://querykey-prod-wss.onrender.com
|
|
# Render support says we need to manually set this because otherwise
|
|
# sometimes it checks a different random port that NextJS opens for
|
|
# liveness and the liveness check fails.
|
|
- key: PORT
|
|
value: 10000
|
|
|
|
- type: web
|
|
name: querykey-prod-wss
|
|
env: docker
|
|
dockerfilePath: ./app/Dockerfile
|
|
dockerContext: .
|
|
plan: free
|
|
dockerCommand: pnpm tsx src/wss-server.ts
|