{"componentChunkName":"component---src-templates-platform-tsx","path":"/platforms/javascript/guides/ember/sourcemaps/validating/","result":{"data":{"file":{"id":"99e59a1f-1c3c-5e59-8c01-fa2e072f29d4","relativePath":"javascript/common/sourcemaps/validating.mdx","sourceInstanceName":"platforms","childMarkdownRemark":null,"childMdx":{"body":"function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\n/* @jsx mdx */\nvar _frontmatter = {\n  \"title\": \"Validating Files\"\n};\nvar layoutProps = {\n  _frontmatter: _frontmatter\n};\nvar MDXLayout = \"wrapper\";\nreturn function MDXContent(_ref) {\n  var components = _ref.components,\n      props = _objectWithoutProperties(_ref, [\"components\"]);\n\n  return mdx(MDXLayout, _extends({}, layoutProps, props, {\n    components: components,\n    mdxType: \"MDXLayout\"\n  }), mdx(\"p\", null, \"It can be quite challenging to ensure that source maps are actually valid themselves and uploaded correctly. To help with this, we maintain an online validation tool that can be used to test your source maps against your \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"hosted\"), \" source: \", mdx(\"a\", _extends({\n    parentName: \"p\"\n  }, {\n    \"href\": \"https://sourcemaps.io\"\n  }), \"sourcemaps.io\"), \".\"), mdx(\"p\", null, \"Additionally, you can use the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"--validate\"), \" flag within when uploading source maps with \", mdx(\"a\", _extends({\n    parentName: \"p\"\n  }, {\n    \"href\": \"/product/cli/\"\n  }), \"sentry-cli\"), \", which will attempt to locally parse the source map and look up the references. Note that there are known cases where the validate flag will indicate failures when the setup is correct (if you have references to external source maps, then the validation tool will indicate a failure).\"), mdx(\"p\", null, \"You can also check these, in addition to the validation step:\"), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"Ensure that the URL prefix is correct for your files. This is easy to get wrong.\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"Upload the matching source maps for your minimized files.\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"Ensure that the minified files you have on your servers actually have references to your files.\")));\n}\n;\nMDXContent.isMDXComponent = true;","tableOfContents":{},"internal":{"type":"Mdx"}}}},"pageContext":{"excerpt":"It can be quite challenging to ensure that source maps are actually valid themselves and uploaded correctly. To help with this, we maintain an online validation tool that can be used to test your source maps against your  hosted  source:  sourcemaps.io . Additionally, you can use the  --validate  flag within when uploading source maps with  sentry-cli , which will attempt to locally parse the source map and look up the references. Note that there are known cases where the validate flag will indicate failures when the setup is correct (if you have references to external source maps, then the validation tool will indicate a failure). You can also check these, in addition to the validation step: Ensure that the URL prefix is correct for your files. This is easy to get wrong. Upload the matching source maps for your minimized files. Ensure that the minified files you have on your servers actually have references to your files.","title":"Validating Files","platform":{"name":"javascript","title":"JavaScript"},"guide":{"name":"ember","title":"Ember"},"noindex":true,"notoc":true,"redirect_from":[],"id":"99e59a1f-1c3c-5e59-8c01-fa2e072f29d4"}},"staticQueryHashes":["1218203755","1222113826","1222113826","1766336459","2158593473","2404336828","2472290386","2764967025","3818502851","4015007367","4192517163","4264099332","518019976"]}