Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion tauri/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@radix-ui/react-slot": "^1.2.3",
"@radix-ui/react-toggle": "^1.1.10",
"@radix-ui/react-tooltip": "^1.2.8",
"@sentry/react": "^9.1.0",
"@sentry/react": "10.11.0",
"@tailwindcss/vite": "^4.1.13",
"@tanstack/react-query": "^5.53.2",
"@tauri-apps/api": "^2.0.0",
Expand Down Expand Up @@ -71,6 +71,7 @@
"zustand": "^5.0.2"
},
"devDependencies": {
"@sentry/vite-plugin": "^4.3.0",
"@tailwindcss/postcss": "^4.1.13",
"@tauri-apps/cli": "2.2.7",
"@types/howler": "^2.2.12",
Expand Down
2 changes: 1 addition & 1 deletion tauri/src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://schema.tauri.app/config/2",
"build": {
"beforeDevCommand": "yarn dev",
"beforeBuildCommand": "yarn build",
"beforeBuildCommand": "yarn build && rm -rf ./dist/assets/*.js.map",
"frontendDist": "../dist",
"devUrl": "http://localhost:1420"
},
Expand Down
2 changes: 2 additions & 0 deletions tauri/src/services/sentry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@ Sentry.init({
Sentry.captureConsoleIntegration({
levels: ["error"],
}),
Sentry.browserTracingIntegration(),
],
// Learn more at
// https://docs.sentry.io/platforms/javascript/session-replay/configuration/#general-integration-configuration
replaysSessionSampleRate: 0.1,
replaysOnErrorSampleRate: 1.0,
tracesSampleRate: 1.0,
});

// Set initial window context
Expand Down
15 changes: 14 additions & 1 deletion tauri/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,23 @@ import path, { resolve } from "path";
import { defineConfig, loadEnv } from "vite";
import tailwindcss from "@tailwindcss/vite";
import react from "@vitejs/plugin-react";
import { sentryVitePlugin } from "@sentry/vite-plugin";

// https://vitejs.dev/config/
export default defineConfig(async (config) => {
return {
plugins: [react(), tailwindcss()],
plugins: [
react(),
tailwindcss(),
// Enable only if Sentry is enabled
process.env.SENTRY_AUTH_TOKEN ?
sentryVitePlugin({
org: "renkey",
project: "tauri-app",
authToken: process.env.SENTRY_AUTH_TOKEN,
})
: undefined,
],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
Expand All @@ -26,6 +38,7 @@ export default defineConfig(async (config) => {
},
},
build: {
sourcemap: true,
rollupOptions: {
input: {
main: resolve(__dirname, "index.html"),
Expand Down
2 changes: 1 addition & 1 deletion web-app/src/components/SignInSuccessModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function SignInSuccessModal() {

// Configure Tally with user's email as hidden field
window.TallyConfig = {
formId: "nPeOk0",
formId: "nGMylz",
popup: {
width: 700,
layout: "modal",
Expand Down
Loading
Loading