Sentry Integration Guide

This guide shows how to set up with OS.js.


Create an account and a project for client (web) and server (node).

Server Integration

First, run npm install @sentry/node.

Then, in your src/server/index.js file, add the following:

const Sentry = require('@sentry/node');
Sentry.init({dsn: ''});

[info] Restart your server after adding these changes

Client Integration

Add the sentry client script to your template in src/client/index.ejs:

    <!-- Add before the closing body tag -->
    <script src="" crossorigin="anonymous"></script>

In the bottom of your src/client/index.js file, add the following:

Sentry.init({dsn: ''});

[info] Rebuild your client with npm run build

OS.js Web Desktop - © Anders Evenrud <>

results matching ""

    No results matching ""