Merged in feat/sw-2872-dependency-inject-app-context-in-trpc-package (pull request #2478)

feat(SW-2872) Dependency inject app context in trpc package

* Move appRouter to trpc package

* WIP Move serverClient to trpc package

Doesn't handle errors yet

* Don't use global

* Use trpc everywhere


Approved-by: Linus Flood
This commit is contained in:
Anton Gunnarsson
2025-07-01 08:49:33 +00:00
parent a3702d0ecc
commit 6eeaa1cd40
19 changed files with 194 additions and 100 deletions

View File

@@ -1,3 +1,5 @@
import * as Sentry from "@sentry/nextjs"
import type { NextConfig } from "next"
const nextConfig: NextConfig = {
@@ -27,4 +29,23 @@ const nextConfig: NextConfig = {
},
}
export default nextConfig
export default Sentry.withSentryConfig(nextConfig, {
org: "scandic-hotels",
project: "partner-sas",
authToken: process.env.SENTRY_AUTH_TOKEN,
// Only print logs for uploading source maps in CI
silent: !process.env.CI,
// Upload a larger set of source maps for prettier stack traces (increases build time)
widenClientFileUpload: true,
// Automatically annotate React components to show their full name in breadcrumbs and session replay
reactComponentAnnotation: {
enabled: true,
},
hideSourceMaps: true,
disableLogger: true,
})