link-stack/apps/bridge-worker/graphile.config.ts

18 lines
497 B
TypeScript
Raw Permalink Normal View History

2024-04-21 16:59:50 +02:00
import type {} from "graphile-config";
import type {} from "graphile-worker";
const preset: GraphileConfig.Preset = {
worker: {
connectionString: process.env.DATABASE_URL,
maxPoolSize: process.env.BRIDGE_WORKER_POOL_SIZE
? parseInt(process.env.BRIDGE_WORKER_POOL_SIZE, 10)
: 10,
pollInterval: process.env.BRIDGE_WORKER_POLL_INTERVAL
? parseInt(process.env.BRIDGE_WORKER_POLL_INTERVAL, 10)
: 2000,
2024-04-21 16:59:50 +02:00
fileExtensions: [".ts"],
},
};
export default preset;