Write your custom code as a plugin (or a Theme component if very lightweight) for least disruption. Then that code will not be overwritten with each update or rebuild.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Customizing via core edits vs. using plugins | 8 | 754 | February 25, 2018 | |
| Disabling Automatic Updates | 10 | 594 | May 15, 2023 | |
| How can I make some customizations with the discourse source code when set up with official docker install guides | 3 | 208 | June 9, 2024 | |
| Template Overrides Removal - Can someone explain? | 9 | 106 | April 20, 2025 | |
| Possible to override a core file functionality? | 1 | 534 | April 17, 2018 |