/** * Content written to a configuration file edited from the dashboard: * "\n" line breaks and a final line break (the request body comes trimmed). */ export function toFileContent(content: string) { const normalized = content.replace(/\r\n/g, '\n') return normalized.endsWith('\n') ? normalized : `${normalized}\n` }