Skip to content

Commit

Permalink
Add sentry script in prod env only.
Browse files Browse the repository at this point in the history
  • Loading branch information
kabalin committed Dec 27, 2023
1 parent 8f44f7f commit 66b3992
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion views/app.pug
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ html
script(type="text/javascript", src='/js/lib/es6-promise.min.js')

link(rel="stylesheet", href="/style/common.css")
| <script src="https://js.sentry-cdn.com/9584509fc9bc1edf71474b8460b41d65.min.js" crossorigin="anonymous"></script>

| <script type="text/javascript">
//-Вставляем в скрипт сгенерированную для клиента строку глобальных переменных с изначальными данными
!= initData
Expand All @@ -20,6 +20,8 @@ html
include ../public/js/lib/require/require.js
include ../public/js/_mainConfig.js
| </script>
else
script(src="https://js.sentry-cdn.com/9584509fc9bc1edf71474b8460b41d65.min.js", crossorigin="anonymous")

body
if nojsShow
Expand Down

0 comments on commit 66b3992

Please sign in to comment.