actually fix worker in local dev

This commit is contained in:
keyan 2024-05-08 16:25:01 -05:00
parent 32f0b1722f
commit 46efb770fb
2 changed files with 2 additions and 3 deletions

View File

@ -80,8 +80,7 @@ services:
worker:
container_name: worker
build:
context: ./
dockerfile: ./worker/Dockerfile
context: ./worker
args:
- UID=${CURRENT_UID}
- GID=${CURRENT_GID}

View File

@ -28,7 +28,7 @@ import { saltAndHashEmails } from './saltAndHashEmails.js'
const { loadEnvConfig } = nextEnv
const { ApolloClient, HttpLink, InMemoryCache } = apolloClient
loadEnvConfig('.')
loadEnvConfig('.', process.env.NODE_ENV === 'development')
async function work () {
const boss = new PgBoss(process.env.DATABASE_URL)