v1.54.0 — Customizable dashboard, Move services between Cloud Run instances, Build hooks
In this release we've added several highly requested features. Remember to update your CLI using encore version update.
Customizable Cloud Dashboard
https://github.com/user-attachments/assets/25527b62-b8c9-4b6f-86b0-cb66d6384a88
You can now pick the environments you want to see on your app overview dashboard and choose which deployments should show up. We hope this update helps you keep your focus on what matters most.
Your settings are saved in local storage per app, so you can make the dashboard your own for each of your projects.
Move services between Cloud Run instances
https://github.com/user-attachments/assets/ad582bd8-62bb-44c3-aa39-bdd1a2e5e22e
On Encore Cloud you can now easily move services between existing Cloud Run instances, or move services into new instances. This makes it simple to run different services with different infrastructure configurations to optimize for your performance, scalability, and cost targets.
To try it out, open the Infrastructure page in Encore Cloud and rearrange your services using click-to-move or drag and drop.
When you make a change, it gets saved in preview and you can then click Deploy to apply the changes. This lets you make multiple configuration changes, staying in control over how and when they are applied.
- Want to see this for other compute types? Let us know!
Build Hooks
You can now define custom build hooks that execute during the build process when deploying to Encore Cloud or building a Docker image via encore build docker.
Two hooks are available:
prebuild— Runs before the Encore build, but after dependencies are fetched (e.g.,npm install)postbuild— Runs after the Encore build has finished
This is particularly useful for building dependencies in a monorepo setup. See our guides for Turborepo and Nx.
Configuration
Define hooks in your encore.app file:
{
"build": {
"hooks": {
"prebuild": "my-command",
"postbuild": "my-command"
}
}
}
Hooks can also be specified as an object with custom environment variables:
{
"build": {
"hooks": {
"prebuild": {"command": "my-command", "env": {"MY_VAR": "value"}}
}
}
}
Other improvements
- docs: add info about the service client ref by @fredr in https://github.com/encoredev/encore/pull/2255
- docs: add docs for ts monorepos by @fredr in https://github.com/encoredev/encore/pull/2254
- feat(add): Adds endpoints for
dash.gofor localdev -traces/spans/summaries/list,traces/spans/events/listby @eleijonmarck in https://github.com/encoredev/encore/pull/2257 - daemon: run prepare correctly on encore run by @fredr in https://github.com/encoredev/encore/pull/2259
- runtimes/core: add support for trace sampling rate by @fredr in https://github.com/encoredev/encore/pull/2262
Full Changelog: https://github.com/encoredev/encore/compare/v1.53.8...v1.54.0