mirror of
https://github.com/boostorg/website-v2.git
synced 2026-01-19 04:42:17 +00:00
Remove fallback url map going to s3
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -38,9 +38,5 @@
|
||||
{
|
||||
"site_path": "/doc/",
|
||||
"s3_path": "/site-docs/develop/"
|
||||
},
|
||||
{
|
||||
"site_path": "/",
|
||||
"s3_path": "/site/develop/"
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user