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

import {
  LBs
} from "../../../../chunk-L3HFTASV.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 = LBs(
    envContent,
    "SENTRY_DSN",
    sentryDNS ?? "",
    "Sentry DNS. Used for Error Reporting on the Server"
  );
  envContent = LBs(
    envContent,
    "PUBLIC_ENV__SENTRY_DSN",
    "",
    "Sentry DNS. Used for Error Reporting in the Browser"
  );
  return envContent;
}
export {
  getServerlessEnv as default
};
