As developers, we often find ourselves in situations where we need to change something in our codebase, but don't want to change it everywhere the code is deployed.
Using Encore's new App Metadata API, you can now query the runtime to find out what environment the application is running in. Which means you can easily load the appropriate configuration files into memory and get the correct behavior for each environment.
This makes it a breeze to do things like:
Check out the docs to learn more.
With this release, we've updated the runtime API with the new metadata API's and types. To upgrade you will need to both:
encore version updateto download
v1.1.0of the Encore compiler.
go get -u encore.devto upgrade to the latest runtime API.
— Thanks to @davidmytton, @klemmster, @ValeriaVG, @vilhelmmelkstam, @kwihl, and @MaxDanielsson for your contributions, bug reports, and feedback!
Developers building with Encore are forward-thinkers working on exciting and innovative products. Join the conversation on Slack to see what's going on, learn from others, and share what you're working on.
Over the coming weeks we'll be releasing a vastly improved web UI, and focus on adding much requested flexibility to the Encore framework. We'll add improved support for things like: http headers in Encore APIs, middleware, and dependency injection.
As always, if you have questions or feedback, tell us on Slack or just reply to this email.
We're excited to hear your feedback! ❤️
Catch you in the cloud,
The Encore team