#Sentry setup with start?

10 messages · Page 1 of 1 (latest)

lost sail
#

Reading so many mixed/outdated templates on how to setup Sentry, anyone has some doc/repo to share?

primal moss
lost sail
#

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/

primal moss
#

Yeah I remember seeing that, let me check my current config so I can report back

lost sail
#

@primal moss any luck?

primal moss
#

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",
}),
],
});

lost sail
#

thanks, but still no success for me, I guess I have setup something wrong, hard to find what and where...

primal moss