v1.42.1 - Simpler self-hosting, Infra cleanup, Cloud Platform API, Service-to-Service streaming, and more #1503
marcuskohlberg
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We want to ensure it's simple to deploy your Encore application anywhere. In this release, we're very excited to introduce:
encore build
. It's a much improved version of the oldencore eject
functionality that makes it simpler to deploy your Encore application and requires much less manual configuration.Remember to upgrade Encore:
encore version update
Deploy anywhere that supports Docker images
You can now build your own Docker image using
encore build docker MY-IMAGE:TAG
from the CLI.By default, all your services will be included and started by the Docker image. You can also specify specific services and gateways to include, using the
--services
and--gateways
flags.Learn more in the docs.
Infra cleanup
Encore's Cloud Platform now shows you if you have any unused infrastructure in your cloud environments and supports deleting unused infrastructure. This is based on Encore's understanding of what infrastructure is used by your application code, and any infrastructure resources that are no longer in use are automatically identified.
To use it, simply open your app in app.encore.dev and go to the Infrastructure page for your desired environment. If you have any unused infrastructure it will be listed in the section Unused infrastructure and by clicking the trashcan icon you can mark it for deletion at the next deploy.
Export-1729243598463.mp4
Cloud Platform API
Encore's Cloud Platform now provides an API to simplify integrations with your existing tooling and systems.
Service-to-Service streaming
Encore.ts now supports streaming APIs between services by importing
~encore/clients
.You can configure the stream to only be reachable by other services in your application (and not from the public internet) by setting the
exposed
option tofalse
.Learn more in the docs
encore db shell
Roles supportencore db shell
is a simple way of connecting to your databases using Encore's CLI.Based on your feedback and to improve security, the default role is now read-only and we've introduced support for specifying access roles when using the command.
Use the flags
--write
,--admin
and--superuser
to modify which permissions you connect with.For example, to connect to a database using an admin user you can use
encore db shell --admin -e staging
.Remember to upgrade Encore:
encore version update
Encore.ts custom API error details
Encore.ts now supports the ability to add custom error details to any API error, using the new
.withDetails({ key: "value" })
method.Any details added will be encoded as JSON and added to the API response under the new
"details"
field (which defaults tonull
if not provided).Other improvements & Bugfixes
Thanks to our new Contributors ❤️
We want your feedback
Join Encore's Discord community to share your feedback, ask questions, and have fun: https://encore.dev/discord 👋
Full Changelog: v1.41.9...v1.42.1
This discussion was created from the release v1.42.1 - Simpler self-hosting, Infra cleanup, Cloud Platform API, Service-to-Service streaming, and more.
Beta Was this translation helpful? Give feedback.
All reactions