fix key error
All checks were successful
Build and Publish / build-release (push) Successful in 1m33s

This commit is contained in:
2026-04-15 15:50:42 -05:00
parent 1575c7de79
commit fecc0cf562
3 changed files with 4 additions and 2 deletions

View File

@@ -45,6 +45,8 @@ config :commanded_ecto_projections,
config :flop, repo: ProviderService.Repo
config :provider_service, :s3_bucket, "provider-service"
# Import environment specific config. This must remain at the bottom
# of this file so it overrides the configuration defined above.
import_config "#{config_env()}.exs"

View File

@@ -27,7 +27,7 @@ config :ex_aws, :s3,
host: s3_host,
port: s3_port
config :provider_service, :s3_bucket, System.get_env("S3_BUCKET")
config :provider_service, :s3_bucket, System.get_env("S3_BUCKET", "provider-service")
if System.get_env("PHX_SERVER") do
config :provider_service, ProviderServiceWeb.Endpoint, server: true

View File

@@ -1,5 +1,5 @@
defmodule ProviderService.S3 do
@bucket Application.compile_env(:provider_service, :s3_bucket, "policy-bucket")
@bucket Application.compile_env(:provider_service, :s3_bucket)
def presigned_upload_url(s3_key) do
{:ok, url} =