* chore: adding copyright to all files in web app * chore: update copyright in admin app * chore: copyright comments updated on space app * fix: formatting in files
47 lines
1.6 KiB
TypeScript
47 lines
1.6 KiB
TypeScript
/**
|
|
* SPDX-FileCopyrightText: 2023-present Plane Software, Inc.
|
|
* SPDX-License-Identifier: LicenseRef-Plane-Commercial
|
|
*
|
|
* Licensed under the Plane Commercial License (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
* https://plane.so/legals/eula
|
|
*
|
|
* DO NOT remove or modify this notice.
|
|
* NOTICE: Proprietary and confidential. Unauthorized use or distribution is prohibited.
|
|
*/
|
|
|
|
import * as Sentry from "@sentry/react-router";
|
|
import { startTransition, StrictMode } from "react";
|
|
import { hydrateRoot } from "react-dom/client";
|
|
import { HydratedRouter } from "react-router/dom";
|
|
|
|
Sentry.init({
|
|
dsn: process.env.VITE_SENTRY_DSN,
|
|
environment: process.env.VITE_SENTRY_ENVIRONMENT,
|
|
sendDefaultPii: process.env.VITE_SENTRY_SEND_DEFAULT_PII ? process.env.VITE_SENTRY_SEND_DEFAULT_PII === "1" : false,
|
|
release: process.env.VITE_APP_VERSION,
|
|
tracesSampleRate: process.env.VITE_SENTRY_TRACES_SAMPLE_RATE
|
|
? parseFloat(process.env.VITE_SENTRY_TRACES_SAMPLE_RATE)
|
|
: 0.1,
|
|
profilesSampleRate: process.env.VITE_SENTRY_PROFILES_SAMPLE_RATE
|
|
? parseFloat(process.env.VITE_SENTRY_PROFILES_SAMPLE_RATE)
|
|
: 0.1,
|
|
replaysSessionSampleRate: process.env.VITE_SENTRY_REPLAYS_SESSION_SAMPLE_RATE
|
|
? parseFloat(process.env.VITE_SENTRY_REPLAYS_SESSION_SAMPLE_RATE)
|
|
: 0.1,
|
|
replaysOnErrorSampleRate: process.env.VITE_SENTRY_REPLAYS_ON_ERROR_SAMPLE_RATE
|
|
? parseFloat(process.env.VITE_SENTRY_REPLAYS_ON_ERROR_SAMPLE_RATE)
|
|
: 1.0,
|
|
integrations: [],
|
|
});
|
|
|
|
startTransition(() => {
|
|
hydrateRoot(
|
|
document,
|
|
<StrictMode>
|
|
<HydratedRouter />
|
|
</StrictMode>
|
|
);
|
|
});
|