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?
|
*.sw?
|
||||||
|
|
||||||
.vscode
|
.vscode
|
||||||
# Sentry Config File
|
|
||||||
.env.sentry-build-plugin
|
build
|
||||||
stats.html
|
|
||||||
1
.stylelintignore
Normal file
1
.stylelintignore
Normal file
@@ -0,0 +1 @@
|
|||||||
|
build
|
||||||
@@ -33,8 +33,6 @@
|
|||||||
"@radix-ui/react-slot": "^1.2.3",
|
"@radix-ui/react-slot": "^1.2.3",
|
||||||
"@react-router/node": "^7.6.3",
|
"@react-router/node": "^7.6.3",
|
||||||
"@react-router/serve": "^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",
|
"@tanstack/react-query": "^5.81.5",
|
||||||
"@types/canvas-confetti": "^1.9.0",
|
"@types/canvas-confetti": "^1.9.0",
|
||||||
"@types/sarif": "^2.1.7",
|
"@types/sarif": "^2.1.7",
|
||||||
@@ -112,7 +110,6 @@
|
|||||||
},
|
},
|
||||||
"pnpm": {
|
"pnpm": {
|
||||||
"onlyBuiltDependencies": [
|
"onlyBuiltDependencies": [
|
||||||
"@sentry/cli",
|
|
||||||
"es5-ext",
|
"es5-ext",
|
||||||
"esbuild",
|
"esbuild",
|
||||||
"unrs-resolver"
|
"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 type { Config } from "@react-router/dev/config";
|
||||||
import { sentryOnBuildEnd } from "@sentry/react-router";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
appDirectory: "app",
|
appDirectory: "app",
|
||||||
ssr: false,
|
ssr: false,
|
||||||
|
|
||||||
buildEnd: async ({ viteConfig, reactRouterConfig, buildManifest }) => {
|
|
||||||
// ...
|
|
||||||
// Call this at the end of the hook
|
|
||||||
await sentryOnBuildEnd({ viteConfig, reactRouterConfig, buildManifest });
|
|
||||||
},
|
|
||||||
} satisfies Config;
|
} 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 { reactRouter } from "@react-router/dev/vite";
|
||||||
import {
|
|
||||||
type SentryReactRouterBuildOptions,
|
|
||||||
sentryReactRouter,
|
|
||||||
} from "@sentry/react-router";
|
|
||||||
import { defineConfig } from "vite";
|
import { defineConfig } from "vite";
|
||||||
import devtoolsJson from "vite-plugin-devtools-json";
|
import devtoolsJson from "vite-plugin-devtools-json";
|
||||||
import tsconfigPaths from "vite-tsconfig-paths";
|
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({
|
export default defineConfig({
|
||||||
appType: "spa",
|
appType: "spa",
|
||||||
server: {
|
server: {
|
||||||
cors: true,
|
cors: true,
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [reactRouter(), devtoolsJson(), tsconfigPaths()],
|
||||||
reactRouter(),
|
|
||||||
devtoolsJson(),
|
|
||||||
tsconfigPaths(),
|
|
||||||
sentryReactRouter(sentryConfig, {
|
|
||||||
command: "build",
|
|
||||||
mode: "production",
|
|
||||||
}),
|
|
||||||
],
|
|
||||||
build: {
|
build: {
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
assetsDir: "static",
|
assetsDir: "static",
|
||||||
|
|||||||
Reference in New Issue
Block a user