// One single place that decides which folder uploaded files live in.
// Every other file (disk driver, static file serving) must use this
// function instead of reading the env var themselves.
export function getUploadRoot(): string {
  return (process.env.LOCAL_UPLOAD_PATH || 'uploads').replace(/^\/+|\/+$/g, '');
}
