How (Not) to Update Your Open SaaS App
Why you probably shouldn’t include the latest template changes in your app
We generally advise against updating your Open SaaS-based applications after initial setup.
Why?
Because your codebase will naturally diverge from the template as you build your unique application, and any updates we may make to the template may not be compatible with your modified codebase, or your version of Wasp.
Even if you really want to include a new feature from the template in your app, proceed with caution and thoroughly consider the following:
- Changes to the template may be tightly coupled. Implementing one change without related ones could cause unexpected issues.
- Updates might not be compatible with your version of Wasp.
- The more your codebase has diverged, the more challenging the update will be.
If you still decide to update your app
If you read above, considered the risks, and still need specific improvements, we recommend that you manually merge the changes.
To do this, you should can either 1) merge new Open SaaS template changes into your current project, or 2) merge project changes into a fresh Open SaaS template.
- Merge new Open SaaS template changes into your current project by:
- reviewing the latest commits,
- understanding what happened,
- being mindful of the Wasp version you’re using,
- and then fitting those changes into your own codebase.
- Merge your project changes into a fresh Open SaaS template by:
- starting a new, fresh project with the latest Open SaaS template,
- and then copying over the logic from your existing project that you want to keep.
The method you choose is up to you and will largely depend on the complexity of the changes you need to make.