Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

465 B
Raw Blame
exports.handler = (event, _context, callback) => {
  const response = event.Records[0].cf.response;
  const headers = response.headers;
  const request = event.Records[0].cf.request;

  if (
    request.uri.includes('soffice') &&
    (request.uri.endsWith('.wasm') ||
      request.uri.endsWith('.data') ||
      request.uri.endsWith('.patch'))
  ) {
    headers['content-encoding'] = [{ key: 'Content-Encoding', value: 'br' }];
  }

  callback(null, response);
};