I’m having issues in serving various static assets (various based on the url_prefix) from one tigris bucket.
When I define only one tigris/storage rule in the toml
file, the assets seem to be served from the tigris bucket. Example of my toml
:
primary_region = "lhr"
[build]
[http_service]
internal_port = 3000
force_https = true
auto_stop_machines = "stop"
auto_start_machines = true
min_machines_running = 0
processes = ["app"]
[[statics]]
guest_path = "/client-assets/assets"
url_prefix = "/assets"
tigris_bucket = "my-bucket"
[[vm]]
memory = "1gb"
cpu_kind = "shared"
cpus = 1
But when I add an additional tigris rule, it seems that only the second rule takes effect. For example, when using this toml
:
primary_region = "lhr"
[build]
[http_service]
internal_port = 3000
force_https = true
auto_stop_machines = "stop"
auto_start_machines = true
min_machines_running = 0
processes = ["app"]
[[statics]]
guest_path = "/client-assets/assets"
url_prefix = "/assets"
tigris_bucket = "my-bucket"
[[statics]]
guest_path = "/client-assets/brand"
url_prefix = "/brand"
tigris_bucket = "my-bucket"
[[vm]]
memory = "1gb"
cpu_kind = "shared"
cpus = 1
Files from the brand folder seem to be served from a tigris bucket, while the ones from the assets don’t.
Am I doing something wrong here?