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

import {
  kUs
} from "../../../../chunk-KGXTM3D3.js";
import "../../../../chunk-IAWYWZSL.js";
import "../../../../chunk-DHZ7AZKP.js";

// ../../boilerplates/sentry/dist/files/$.env.js
async function getServerlessEnv(props) {
  const sentryDNS = process.env.TEST_SENTRY_DSN;
  let envContent = await props.readfile?.();
  envContent = kUs(
    envContent,
    "SENTRY_DSN",
    sentryDNS ?? "",
    "Sentry DNS. Used for Error Reporting on the Server"
  );
  envContent = kUs(
    envContent,
    "PUBLIC_ENV__SENTRY_DSN",
    "",
    "Sentry DNS. Used for Error Reporting in the Browser"
  );
  return envContent;
}
export {
  getServerlessEnv as default
};
