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,
|
2024-11-05 10:12:18 +01:00
|
|
|
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;
|