mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 13:04:23 +00:00
feat: integrate Sentry for error tracking and performance monitoring
- Added Sentry module to nuxt.config.ts and configured it for both client and server. - Updated package.json to include @sentry/nuxt dependency. - Created sentry.client.config.ts and sentry.server.config.ts for Sentry initialization with appropriate settings. - Adjusted route rules and added additional configurations in nuxt.config.ts.
This commit is contained in:
parent
930713042e
commit
dd61937945
6 changed files with 351 additions and 50 deletions
|
@ -1,6 +1,7 @@
|
|||
export default defineNuxtConfig({
|
||||
compatibilityDate: "2025-05-06",
|
||||
devtools: { enabled: true },
|
||||
|
||||
routeRules: {
|
||||
"/": { redirect: "/home" },
|
||||
"/zh_tw": { redirect: "/zh_tw/home" },
|
||||
|
@ -8,7 +9,9 @@ export default defineNuxtConfig({
|
|||
"/go/**": { ssr: true },
|
||||
"/find/**": { ssr: true },
|
||||
},
|
||||
|
||||
css: ["~/styles/main.css"],
|
||||
|
||||
modules: [
|
||||
"@nuxt/image",
|
||||
"@nuxtjs/robots",
|
||||
|
@ -18,7 +21,9 @@ export default defineNuxtConfig({
|
|||
"shadcn-nuxt",
|
||||
"motion-v/nuxt",
|
||||
"@clerk/nuxt",
|
||||
"@sentry/nuxt/module",
|
||||
],
|
||||
|
||||
i18n: {
|
||||
defaultLocale: "en",
|
||||
vueI18n: "./i18n.config.ts",
|
||||
|
@ -27,11 +32,13 @@ export default defineNuxtConfig({
|
|||
{ code: "zh_tw", name: "Chinese Tradional", file: "zh-tw.json" },
|
||||
],
|
||||
},
|
||||
|
||||
site: {
|
||||
url: "https://news.yuanhau.com",
|
||||
title: "BlindSpec",
|
||||
description: "",
|
||||
},
|
||||
|
||||
app: {
|
||||
head: {
|
||||
title: "",
|
||||
|
@ -95,12 +102,14 @@ export default defineNuxtConfig({
|
|||
],
|
||||
},
|
||||
},
|
||||
|
||||
postcss: {
|
||||
plugins: {
|
||||
tailwindcss: {},
|
||||
autoprefixer: {},
|
||||
}, // Add your content paths here
|
||||
},
|
||||
|
||||
shadcn: {
|
||||
/**
|
||||
* Prefix for all the imported component
|
||||
|
@ -112,7 +121,19 @@ export default defineNuxtConfig({
|
|||
*/
|
||||
componentDir: "./components/ui",
|
||||
},
|
||||
|
||||
nitro: {
|
||||
preset: "bun", // This is dumb.
|
||||
},
|
||||
|
||||
sentry: {
|
||||
sourceMapsUploadOptions: {
|
||||
org: "hwtwcc",
|
||||
project: "news-analyze",
|
||||
},
|
||||
},
|
||||
|
||||
sourcemap: {
|
||||
client: "hidden",
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue