Skip to content

Commit 37a854b

Browse files
committed
Add note about secret interpolation
1 parent 5be84bc commit 37a854b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

resources/shuttle-shared-db.mdx

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ async fn poem(#[shuttle_shared_db::Postgres(
3030
)] pool: PgPool) -> ShuttlePoem<impl poem::Endpoint> { ... }
3131
```
3232

33+
<Note>If you are interpolating a secret from `Secrets.dev.toml`, you need to set the same secret in `Secrets.toml` to a empty string so that this step does not crash in deployment.</Note>
34+
3335
## Example
3436
The Shuttle poem main function below uses the `[shuttle_shared_db::Postgres]` attribute macro to provision a shared postgres database,
3537
which can be accessed using a pre-configured, authenticated [sqlx Pool](https://docs.rs/sqlx/latest/sqlx/pool/index.html).

0 commit comments

Comments
 (0)