feat(chalice): fixed get sourcemap from server if not in bucket
This commit is contained in:
parent
38402f526f
commit
9ff2cc8111
1 changed files with 3 additions and 1 deletions
|
|
@ -89,7 +89,9 @@ def get_traces_group(project_id, payload):
|
|||
file_exists_in_server = False
|
||||
file_url = u["absPath"]
|
||||
key = __get_key(project_id, file_url) # use filename instead?
|
||||
if file_url and len(file_url) > 0 and not file_url[:file_url.find("?")].endswith(".js"):
|
||||
params_idx = file_url.find("?")
|
||||
if file_url and len(file_url) > 0 \
|
||||
and not (file_url[:params_idx] if params_idx > -1 else file_url).endswith(".js"):
|
||||
print(f"{u['absPath']} sourcemap is not a JS file")
|
||||
payloads[key] = None
|
||||
continue
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue