import { createRequestContainer } from "../di/container.js";
import { getAuthFromRequest } from "../auth/server.js";
import { resolveTranslations } from "../i18n/server.js";
async function resolveRequestContext(req) {
  const container = await createRequestContainer();
  const auth = await getAuthFromRequest(req);
  const { translate } = await resolveTranslations();
  const ctx = {
    container,
    auth,
    translate
  };
  return { ctx };
}
export {
  resolveRequestContext
};
//# sourceMappingURL=context.js.map
