#Sentry setup with start?
10 messages · Page 1 of 1 (latest)
Learn how to set up and configure Sentry in your TanStack Start React application, capturing your first errors, and viewing them in Sentry.
thanks looks good, but still not sure how/where to put my org, project etc creadentials 🤔
on sentry dashboard they still have old vinxi setup configuration I believe https://[your-id].sentry.io/insights/projects/[your-project]/getting-started/
Yeah I remember seeing that, let me check my current config so I can report back
@primal moss any luck?
i have this on my vite.config.ts: import { sentryVitePlugin } from "@sentry/vite-plugin";
import tailwindcss from "@tailwindcss/vite";
import { tanstackStart } from "@tanstack/react-start/plugin/vite";
import viteReact from "@vitejs/plugin-react";
import { defineConfig } from "vite";
import viteTsConfigPaths from "vite-tsconfig-paths";
export default defineConfig({
optimizeDeps: {
entries: ["src//*.tsx", "src//*.ts"],
},
server: {
port: 3000,
host: true,
warmup: {
clientFiles: ["./src/server.tsx"],
},
},
plugins: [
tailwindcss(),
viteTsConfigPaths({
projects: ["./tsconfig.json"],
}),
tanstackStart({
customViteReactPlugin: true,
target: "node-server",
}),
viteReact(),
sentryVitePlugin({
org: process.env.SENTRY_ORG,
project: process.env.SENTRY_PROJECT,
authToken: process.env.SENTRY_AUTH_TOKEN,
// Only print logs for uploading source maps in CI
// Set to true to suppress logs
// silent: !process.env.CI,
// disable: process.env.NODE_ENV === "development",
}),
],
});
thanks, but still no success for me, I guess I have setup something wrong, hard to find what and where...
I used https://github.com/CarlosZiegler/fullstack-start-template this template for sentry setup