This upgrade introduces some name changes, a new replacements strategy, and a more modular approach with apps and workspaces.
To use the latest version, you may maintain your current app's structure, but must make the following changes:
- In every app's
bos.config.json
, rename "appAccount" to "account" - Any widget utilizing replacements with
/*__@appAccount__*/
should replace with${config_account}
. Aliases should be replaced with${alias_ALIASKEY}
.
{
"appAccount": "potlock.near",
"aliases": {
"nui": "nearui.near"
}
}
{
"account": "potlock.near",
"aliases": ["./aliases.mainnet.json"],
"overrides": {
"testnet": {
"account": "potlock.testnet",
"aliases": ["./aliases.testnet.json"]
},
"staging": {
"account": "staging.potlock.near",
"aliases": ["./aliases.staging.json"]
}
}
}
Then define your aliases according to environment.
If you decide to maintain the structure of your workspace (e.g. /apps
), add a bos.workspace.json
with content:
{
"apps": ["/apps/*"]
}
And modify the script in the package.json to include ws
(e.g. npm run bw ws dev
)