Remove fallback url map going to s3

This commit is contained in:
sdarwin
2024-04-12 09:47:27 -06:00
committed by Kenneth Reitz
parent c8827699c6
commit f80721b0fc
2 changed files with 4 additions and 5 deletions

View File

@@ -86,7 +86,10 @@ def get_content_from_s3(key=None, bucket_name=None):
raise ValueError("No key provided.")
bucket_name = bucket_name or settings.STATIC_CONTENT_BUCKET_NAME
s3_keys = get_s3_keys(key) or [key]
# s3_keys = get_s3_keys(key) or [key]
# Force a successful lookup from get_s3_keys, otherwise no match at all.
# That removes any random default "/" lookups.
s3_keys = get_s3_keys(key) or []
client = get_s3_client()
for s3_key in s3_keys:

View File

@@ -38,9 +38,5 @@
{
"site_path": "/doc/",
"s3_path": "/site-docs/develop/"
},
{
"site_path": "/",
"s3_path": "/site/develop/"
}
]