You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Follow-up improvements to the self-hosting workflow from #1736
This is strictly a DX improvement. Using consistent names for the keys would make the codebase and infra easier to understand. Everything words fine as is now, though.
Backup & Restore
Document detailed backup and restore process. Keep things standard, but this is for peace-of-mind
Cleanup ENV values and naming:
CORS in the .env is renamed to ORIGINS_ALLOWED inside the backend — the schema splits it on commas, so the env key and the code name differ.
Follow-up improvements to the self-hosting workflow from #1736
This is strictly a DX improvement. Using consistent names for the keys would make the codebase and infra easier to understand. Everything words fine as is now, though.
Backup & Restore
Document detailed backup and restore process. Keep things standard, but this is for peace-of-mind
Cleanup ENV values and naming:
CHANNEL_EXPIRATION_MIN=10->GOOGLE_CALENDAR_SYNC_EXPIRATION_MINTOKEN_GCAL_NOTIFICATION->GOOGLE_CALENDAR_SYNC_TOKEN. Or remove — doesn't seem like this is used anywhere?TOKEN_COMPASS_SYNC->COMPASS_SYNC_TOKENorSYNC_TOKENBASEURL->API_URLorAPI_BASEURLPORT->API_PORTTZ. Remove if possible The backend will only work with it asUTC/Etc/UTC, so why even expose it?urls.backendApi->urls.apiurls.googleWebhook->google.TBDtokens.googleCalendarNotification->google.TBD<-might be duplicate of the aboveEMAILER_*key removal is part of Replace EMAILER envs and code with background job #1730web,mongo,supertokens,apiAdd derivative constant values from user-provided keys
Purpose: parse all the config values you need once, so you don't have to do so much parsing in the business logic.
Example of the smell:
This could instead be
CONFIG.IS_TESTorisTest(CONFIG.NODE_ENV)Cleanup docker img name
backendtoapiBe sure to update GitHub repo variables/secrets to keep CI/CD working: https://github.com/SwitchbackTech/compass/settings/secrets/actions