If there are multiple js files after build, how to upload them to APM server Make it valid on the Source Map

The example I saw from the official documentation was a single file upload :

However, there will be multiple files after I build. How can I upload them? I tried to package only one file but got an error
image

image

Hi @ntmxglrtayl03 ,
the endpoint only accepts one file upload per request. The easiest would probably be to write a small script where you iterate over all your sourcemaps and upload them one-by-one. The important part is to use a unique combination of service_version, bundle_filepath and service_name per service map, as these fields define the unique key with which source maps are fetched.

1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.