#!/usr/bin/env node
import { createRequire as createRequire_BATI_CLI } from 'module';
const require = createRequire_BATI_CLI(import.meta.url);

import {
  TEs
} from "../../../../chunk-53NHAV3C.js";
import "../../../../chunk-IAWYWZSL.js";
import "../../../../chunk-IHX3I5SM.js";

// ../../boilerplates/auth0/dist/files/$wrangler.jsonc.js
async function getEnv(props) {
  if (!props.meta.BATI.has("cloudflare")) return;
  const wrangler = await TEs(props);
  const auth0ClientId = process.env.TEST_AUTH0_CLIENT_ID;
  const auth0ClientSecret = process.env.TEST_AUTH0_CLIENT_SECRET;
  const auth0BaseUrl = process.env.TEST_AUTH0_ISSUER_BASE_URL;
  wrangler.vars ??= {};
  wrangler.vars.AUTH0_CLIENT_ID = auth0ClientId ?? "";
  wrangler.vars.AUTH0_CLIENT_SECRET = auth0ClientSecret ?? "";
  wrangler.vars.AUTH0_ISSUER_BASE_URL = auth0BaseUrl ?? "";
  return wrangler;
}
export {
  getEnv as default
};
