fix(backend): harden runtime config and verification access
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
import express from 'express';
|
||||
import pino from 'pino';
|
||||
import pinoHttp from 'pino-http';
|
||||
import { assertSafeWorkerRuntimeConfig } from './lib/runtime-safety.js';
|
||||
|
||||
const logger = pino({ level: process.env.LOG_LEVEL || 'info' });
|
||||
|
||||
export function createWorkerApp({ dispatch = async () => ({}) } = {}) {
|
||||
assertSafeWorkerRuntimeConfig();
|
||||
const app = express();
|
||||
|
||||
app.use(
|
||||
|
||||
Reference in New Issue
Block a user