Appearance
Are you an LLM? You can read better optimized documentation at /docs/custom-widgets/recipes/force-republish.md for this page in Markdown format
Force Republish
Trigger a widget rebuild without modifying any widget code.
When to Use This
- Content seems stale or outdated
- Build status shows success but widgets aren't updating
- You need to refresh widgets after platform updates
- Testing the publishing pipeline
Prerequisites
- GitHub repository connected and enabled
- Widget currently publishing successfully
Method 1: Empty Commit (Recommended)
The simplest way to trigger a republish:
Steps
bash
# Make sure you're on the watched branch
git checkout main
# Create an empty commit
git commit --allow-empty -m "Trigger widget rebuild"
# Push to trigger publishing
git push1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
Verify
- Go to Integrations → Developer Studio → Sources
- Watch for build status to change to "In Progress"
- Wait for ✓ Completed status
- Refresh your page to see updated widgets
Method 2: Toggle Repository
Disable and re-enable the repository:
Steps
- Go to Integrations → Developer Studio → Sources
- Find your repository
- Click the Disable toggle
- Wait a few seconds
- Click the Enable toggle
- Wait for the build to complete
Note: This temporarily removes widgets from the library while disabled.
Method 3: Touch a File
Make a trivial change to force a new commit:
bash
# Add a comment or whitespace to registry
echo "" >> extensions_registry.json
# Commit and push
git add extensions_registry.json
git commit -m "Trigger rebuild"
git push1
2
3
4
5
6
7
2
3
4
5
6
7
Caution: This modifies your file. Use Method 1 (empty commit) to avoid changes.
Troubleshooting
Build completes but widgets still old
- Browser cache: Hard refresh (Ctrl+Shift+R / Cmd+Shift+R)
- Try incognito: Open in private/incognito window
- Wait for propagation: Allow 1-2 minutes for content to propagate
- Check version: Verify widget version in registry matches expected
Build fails after republish
- Check the error message (hover over status icon)
- Validate
extensions_registry.jsonis valid JSON - Ensure all referenced content files exist
- Review Common Issues
Empty commit not triggering build
Ensure you're pushing to the correct branch:
bash
# Check which branch you're on
git branch --show-current
# Check which branch is being watched
# (visible in Sources settings)1
2
3
4
5
2
3
4
5
Quick Reference
| Method | Modifies Files | Downtime | Best For |
|---|---|---|---|
| Empty commit | No | None | Most cases |
| Toggle repository | No | Brief | Quick refresh |
| Touch file | Yes | None | When empty commit fails |
Related
- Build & Publish — Understand what triggers builds and how they run
- Preview and Promote — Test changes on a staging branch before production
- Common Issues — Troubleshoot build and publishing problems

