Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion examples/sentry/.testRun.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@ function setupEnv() {
}

function testRun(cmd: 'pnpm run dev' | 'pnpm run prod') {
const isProd = cmd !== 'pnpm run dev'
setupEnv()
run(cmd, {
serverIsReadyMessage: isProd ? 'Listening on' : undefined,
// We intentionally throw errors to test Sentry error reporting
tolerateError: ({ logText }) =>
logText.includes('This is a test error sent to Sentry!') ||
logText.includes('This is an async error sent to Sentry!') ||
logText.includes('vike-photon is deprecated') ||
logText.includes('[sentry-vite-plugin]'),
})

Expand Down
3 changes: 0 additions & 3 deletions examples/sentry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
"prod": "vike build && node ./dist/server/index.mjs"
},
"dependencies": {
"@photonjs/hono": "^0.1.12",
"@photonjs/runtime": "^0.1.17",
"@sentry/react": "^10.22.0",
"@sentry/node": "^10.22.0",
"@sentry/vite-plugin": "^4.6.0",
Expand All @@ -18,7 +16,6 @@
"react-dom": "^19.2.0",
"typescript": "^5.9.2",
"vike": "^0.4.258",
"vike-photon": "^0.1.26",
"vike-react": "0.6.21",
"vike-react-sentry": "0.1.0",
"vite": "^7.3.0"
Expand Down
8 changes: 2 additions & 6 deletions examples/sentry/pages/+config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,10 @@ export { config }

import type { Config } from 'vike/types'
import vikeReact from 'vike-react/config'
import vikePhoton from 'vike-photon/config'
import vikeReactSentry from 'vike-react-sentry/config'

const config = {
title: 'Vike + React + Sentry Example',
extends: [vikeReact, vikePhoton, vikeReactSentry],
// Photon configuration
photon: {
server: '../server/index.ts',
},
extends: [vikeReact, vikeReactSentry],
server: true,
} satisfies Config
13 changes: 0 additions & 13 deletions examples/sentry/server/index.ts

This file was deleted.

Loading
Loading