- Add @tanstack/start + vinxi to deps so defineConfig is available - Uncomment defineConfig registration in app.config.ts — middleware is now actually wired into the Nitro server hook, not just defined - Update __root.tsx loader to call getNonce(getEvent().node.req) from @repo/core-shared/security/tanstack so the per-request nonce is read server-side and injected via <meta name="csp-nonce"> - Update __root.test.tsx: mock provides useLoaderData and asserts the nonce meta tag is rendered with the correct content Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
45 lines
1.3 KiB
JSON
45 lines
1.3 KiB
JSON
{
|
|
"name": "@repo/web-tanstack",
|
|
"private": true,
|
|
"version": "0.0.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"build": "echo 'placeholder — TanStack Start build configured in later plan'",
|
|
"dev": "echo 'placeholder'",
|
|
"lint": "eslint .",
|
|
"test": "vitest run --passWithNoTests",
|
|
"test:e2e": "playwright test",
|
|
"typecheck": "tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"@repo/blog": "workspace:*",
|
|
"@repo/core-api": "workspace:*",
|
|
"@repo/core-shared": "workspace:*",
|
|
"@repo/marketing-pages": "workspace:*",
|
|
"@repo/navigation": "workspace:*",
|
|
"@sentry/node": "^10.52.0",
|
|
"@sentry/react": "^10.52.0",
|
|
"@tanstack/react-query": "^5.66.0",
|
|
"@tanstack/react-router": "^1.120.0",
|
|
"@tanstack/start": "^1.120.0",
|
|
"react": "^19.0.0",
|
|
"react-dom": "^19.0.0",
|
|
"vinxi": "0.5.3"
|
|
},
|
|
"devDependencies": {
|
|
"@playwright/test": "^1.50.0",
|
|
"@repo/core-eslint": "workspace:*",
|
|
"@repo/core-testing": "workspace:*",
|
|
"@repo/core-typescript": "workspace:*",
|
|
"@sentry/vite-plugin": "^5.2.1",
|
|
"@testing-library/jest-dom": "^6.5.0",
|
|
"@testing-library/react": "^16.0.0",
|
|
"@testing-library/user-event": "^14.5.0",
|
|
"@types/node": "^22.0.0",
|
|
"@types/react": "^19.0.0",
|
|
"@types/react-dom": "^19.0.0",
|
|
"jsdom": "^25.0.0",
|
|
"vitest": "^3.0.0"
|
|
}
|
|
}
|