Mendloop Docs Request access

Source maps

Upload the maps from each build so minified stack traces become your real files and line numbers.

Minified JavaScript produces stack traces that point at main.3f9c.js:1:48211. Upload the source maps from each build and Mendloop turns them back into your real files and line numbers, which is also what root-cause analysis needs to cite the exact line.

Upload from the command line or CI#

Terminal or CI stepShell
mendloop sourcemaps upload ./dist \
  --url https://app.getmendloop.com \
  --release web@1.8.2 \
  --org ORG_ID --project PROJECT_ID \
  --key sk_live_…        # a secret key with sourcemaps:write
  • --url is your Mendloop address. The CLI defaults to localhost, so on Mendloop Cloud pass https://app.getmendloop.com; on a self-hosted install, your own domain.
  • The --release must equal the release you pass to init in the SDK.
  • Run it in CI after the build, with the key stored as a CI secret.
  • The key is a secret key with the sourcemaps:write scope.

Upload in the app#

You can also upload files in the app under Project → Releases.

Tag your releases#

For the root cause to cite exact lines, Mendloop needs the commit your release was built from. It looks for, in order:

  1. a SHA in the release name (web@1.8.2+3f9c2ab);
  2. a commit, git_sha or vcs.revision tag on the event;
  3. a git tag named like the release (web@1.8.2, 1.8.2 or v1.8.2).

If none is found, it reads the default branch head and the report says so.

One command setup Planned#

npx mendloop init detecting Next.js 15, adding the SDK and source-map upload, writing the config and sending test error ML-1.
npx mendloop init detects Next.js 15, adds the SDK and the source-map upload, writes the config and sends test error ML-1.

npx mendloop init, run in your app's repository, will find your framework, add the SDK and the source-map upload, write the config and send a test error. Until it ships, use the steps above.