fix(cms): use CORE_SYNC_ENABLED for env detection and persist sync stats#632
Merged
fix(cms): use CORE_SYNC_ENABLED for env detection and persist sync stats#632
Conversation
…t UI NODE_ENV is not reliably set to "production" on Railway. Switch to CORE_SYNC_ENABLED which is the explicit production flag already used by the cron system. Remove closeLabel from dev-mode alerts to hide the non-functional X button and add padding underneath. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
…, fix alert UI - Switch production detection from NODE_ENV to CORE_SYNC_ENABLED which is the explicit production flag already used by the cron system - Add created/updated/deleted/errors columns to core_sync_states table so row counts persist across server restarts - Auto-migrate existing tables to add the new stats columns - Remove closeLabel from dev-mode alerts to hide non-functional X button and add padding underneath Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
|
🚀 Expo preview is ready!
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
NODE_ENVisn't set to"production"on Railway, causing the admin UI to show "Development mode" on prod. Switched toCORE_SYNC_ENABLEDwhich is the explicit production flag already used by the cron system.core_sync_statestable so they survive server restarts and show in the admin UI after restart.core_sync_statestables to add the new stats columns.Test plan
🤖 Generated with Claude Code