update
This commit is contained in:
File diff suppressed because one or more lines are too long
5
.gitignore
vendored
5
.gitignore
vendored
@@ -24,6 +24,5 @@ dist-ssr
|
||||
*.sw?
|
||||
|
||||
.vscode
|
||||
# Sentry Config File
|
||||
.env.sentry-build-plugin
|
||||
stats.html
|
||||
|
||||
build
|
||||
1
.stylelintignore
Normal file
1
.stylelintignore
Normal file
@@ -0,0 +1 @@
|
||||
build
|
||||
@@ -33,8 +33,6 @@
|
||||
"@radix-ui/react-slot": "^1.2.3",
|
||||
"@react-router/node": "^7.6.3",
|
||||
"@react-router/serve": "^7.6.3",
|
||||
"@sentry/react": "^9.33.0",
|
||||
"@sentry/react-router": "^9.33.0",
|
||||
"@tanstack/react-query": "^5.81.5",
|
||||
"@types/canvas-confetti": "^1.9.0",
|
||||
"@types/sarif": "^2.1.7",
|
||||
@@ -112,7 +110,6 @@
|
||||
},
|
||||
"pnpm": {
|
||||
"onlyBuiltDependencies": [
|
||||
"@sentry/cli",
|
||||
"es5-ext",
|
||||
"esbuild",
|
||||
"unrs-resolver"
|
||||
|
||||
1240
pnpm-lock.yaml
generated
1240
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -1,13 +1,6 @@
|
||||
import type { Config } from "@react-router/dev/config";
|
||||
import { sentryOnBuildEnd } from "@sentry/react-router";
|
||||
|
||||
export default {
|
||||
appDirectory: "app",
|
||||
ssr: false,
|
||||
|
||||
buildEnd: async ({ viteConfig, reactRouterConfig, buildManifest }) => {
|
||||
// ...
|
||||
// Call this at the end of the hook
|
||||
await sentryOnBuildEnd({ viteConfig, reactRouterConfig, buildManifest });
|
||||
},
|
||||
} satisfies Config;
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1,37 +1,14 @@
|
||||
import { reactRouter } from "@react-router/dev/vite";
|
||||
import {
|
||||
type SentryReactRouterBuildOptions,
|
||||
sentryReactRouter,
|
||||
} from "@sentry/react-router";
|
||||
import { defineConfig } from "vite";
|
||||
import devtoolsJson from "vite-plugin-devtools-json";
|
||||
import tsconfigPaths from "vite-tsconfig-paths";
|
||||
|
||||
const sentryConfig: SentryReactRouterBuildOptions = {
|
||||
telemetry: false,
|
||||
project: "devsecops_ssl-op-demo-new",
|
||||
sourceMapsUploadOptions: {
|
||||
filesToDeleteAfterUpload: [],
|
||||
},
|
||||
// An auth token is required for uploading source maps.
|
||||
authToken:
|
||||
"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",
|
||||
};
|
||||
|
||||
export default defineConfig({
|
||||
appType: "spa",
|
||||
server: {
|
||||
cors: true,
|
||||
},
|
||||
plugins: [
|
||||
reactRouter(),
|
||||
devtoolsJson(),
|
||||
tsconfigPaths(),
|
||||
sentryReactRouter(sentryConfig, {
|
||||
command: "build",
|
||||
mode: "production",
|
||||
}),
|
||||
],
|
||||
plugins: [reactRouter(), devtoolsJson(), tsconfigPaths()],
|
||||
build: {
|
||||
sourcemap: true,
|
||||
assetsDir: "static",
|
||||
|
||||
Reference in New Issue
Block a user