-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2ba91c8
commit d3efeb7
Showing
7 changed files
with
32 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,3 +45,6 @@ Thumbs.db | |
.classpath | ||
*.launch | ||
.settings/ | ||
|
||
# Sentry Config File | ||
.env.sentry-build-plugin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,20 @@ | ||
/* @refresh reload */ | ||
import './index.css' | ||
|
||
import * as Sentry from '@sentry/solid' | ||
import { render } from 'solid-js/web' | ||
import App from './App' | ||
|
||
const environment = import.meta.env.VITE_SENTRY_ENVIRONMENT as string | undefined | ||
if (environment) { | ||
Sentry.init({ | ||
dsn: 'https://[email protected]/4508738328854529', | ||
environment, | ||
}) | ||
} | ||
|
||
const root = document.getElementById('root') | ||
|
||
if (import.meta.env.DEV && !(root instanceof HTMLElement)) { | ||
throw new Error( | ||
'Root element not found. Did you forget to add it to your index.html? Or maybe the id attribute got misspelled?', | ||
) | ||
} | ||
if (!root) throw new Error('No #root element found in the DOM.') | ||
|
||
render(() => <App />, root!) | ||
render(() => <App />, root) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters