import { c as defineEventHandler, e as createError } from '../../_/nitro.mjs';
import { g as getVaxlaConfig } from '../../_/index.mjs';
import 'node:http';
import 'node:https';
import 'node:events';
import 'node:buffer';
import 'node:fs';
import 'node:path';
import 'node:crypto';
import 'node:url';
import 'jiti';
import 'find-up';
import 'tree-kill';
import 'node:child_process';
import '@lydell/node-pty';
import 'fs';
import 'path';
import 'node:module';

const config_get = defineEventHandler(async () => {
  const configPath = process.env.VAXLA_CONFIG;
  if (!configPath) {
    throw createError({
      statusCode: 500,
      statusMessage: "VAXLA_CONFIG is not set"
    });
  }
  const config = await getVaxlaConfig(configPath);
  return { config };
});

export { config_get as default };
//# sourceMappingURL=config.get.mjs.map
