Budibase / budibase

Low code platform for building business apps and workflows in minutes. Supports PostgreSQL, MySQL, MariaDB, MSSQL, MongoDB, Rest API, Docker, K8s, and more 🚀
https://budibase.com
Other
22.79k stars 1.58k forks source link

Allow serving old apps on local dev #14845

Closed adrinr closed 1 month ago

adrinr commented 1 month ago

Description

For a while, when running locally we always used 0.0.0. This meant that we could not run the upgrade/downgrade system locally, and this was changed recently to use the latest version coming from the local lerna.json value. This is now causing serving the client locally, as the server expects 0.0.0 to return the local client.

These changes are adding a +local flag to the prerelease locally, and we are serving the build one if this flag is found. We also return the local build if the version is 0.0.0 for backwards compatibility. These checks also allow us to import production apps (or manually removing the +local tag) and to run with older versions locally.

qa-wolf[bot] commented 1 month ago

QA Wolf here! As you write new code it's important that your test coverage is keeping up. Click here to request test coverage for this PR!