_astro-internal_middleware.mjs 456 B

123456789101112131415161718192021
  1. globalThis.process ??= {}; globalThis.process.env ??= {};
  2. import './chunks/astro-designed-error-pages_CuMapJD2.mjs';
  3. import './chunks/astro/server_WO3f6Mge.mjs';
  4. import { s as sequence } from './chunks/index_BfW_FHpJ.mjs';
  5. const onRequest$1 = (context, next) => {
  6. if (context.isPrerendered) {
  7. context.locals.runtime ??= {
  8. env: process.env
  9. };
  10. }
  11. return next();
  12. };
  13. const onRequest = sequence(
  14. onRequest$1,
  15. );
  16. export { onRequest };