// Health check — test if functions work at all
exports.handler = async () => {
  return {
    statusCode: 200,
    body: JSON.stringify({
      ok: true,
      node: process.version,
      hasFetch: typeof fetch === 'function',
      cwd: process.cwd(),
      envKeys: Object.keys(process.env).filter(k => !k.includes('SECRET') && !k.includes('PASSWORD')).sort(),
    }),
  };
};
