-
Notifications
You must be signed in to change notification settings - Fork 291
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
171 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
{ | ||
"name": "openpanel" | ||
"name": "openpanel", | ||
"envs": { | ||
"OPENPANEL_API_KEY": { | ||
"description": "The API key to use for OpenPanel", | ||
"required": true | ||
}, | ||
"OPENPANEL_PROJECT_ID": { | ||
"description": "The project ID to use for OpenPanel", | ||
"required": true | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
{ | ||
"name": "resend" | ||
"name": "resend", | ||
"envs": { | ||
"RESEND_API_KEY": { | ||
"description": "The API key to use for Resend", | ||
"required": true | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { Resend } from "resend"; | ||
|
||
export const resend = new Resend(process.env.RESEND_API_KEY!); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"name": "sentry", | ||
"envs": { | ||
"SENTRY_AUTH_TOKEN": { | ||
"description": "The auth token to use for Sentry", | ||
"required": true | ||
}, | ||
"NEXT_PUBLIC_SENTRY_DSN": { | ||
"description": "The DSN to use for Sentry", | ||
"required": true | ||
} | ||
}, | ||
"generate": { | ||
"src/instrumentation/src/index.ts": "apps/app/src/instrumentation.ts", | ||
"src/global-error.tsx": "apps/app/src/global-error.tsx", | ||
"src/sentry.server.config.ts": "apps/app/src/sentry.server.config.ts", | ||
"src/sentry.edge.config.ts": "apps/app/src/sentry.edge.config.ts", | ||
"src/sentry.client.config.ts": "apps/app/src/sentry.client.config.ts" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"name": "@v1/sentry", | ||
"version": "1.0.0", | ||
"private": true, | ||
"scripts": { | ||
"clean": "rm -rf .turbo node_modules", | ||
"lint": "biome check .", | ||
"format": "biome format --write .", | ||
"typecheck": "tsc --noEmit" | ||
}, | ||
"dependencies": { | ||
"@sentry/nextjs": "^8", | ||
"@supabase/sentry-js-integration": "^0.3.0" | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export async function register() { | ||
if (process.env.NEXT_RUNTIME === "nodejs") { | ||
await import("../sentry.server.config"); | ||
} | ||
|
||
if (process.env.NEXT_RUNTIME === "edge") { | ||
await import("../sentry.edge.config"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import "./src/env.mjs"; | ||
import { withSentryConfig } from "@sentry/nextjs"; | ||
|
||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = { | ||
transpilePackages: ["@v1/supabase"], | ||
experimental: { | ||
instrumentationHook: process.env.NODE_ENV === "production", | ||
}, | ||
}; | ||
|
||
export default withSentryConfig(nextConfig, { | ||
silent: !process.env.CI, | ||
telemetry: false, | ||
widenClientFileUpload: true, | ||
hideSourceMaps: true, | ||
disableLogger: true, | ||
tunnelRoute: "/monitoring", | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import * as Sentry from "@sentry/nextjs"; | ||
import { supabaseIntegration } from "@supabase/sentry-js-integration"; | ||
import { createClient } from "@v1/supabase/client"; | ||
|
||
const client = createClient(); | ||
|
||
Sentry.init({ | ||
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN, | ||
tracesSampleRate: 1, | ||
debug: false, | ||
enabled: process.env.NODE_ENV === "production", | ||
integrations: [ | ||
supabaseIntegration(client, Sentry, { | ||
tracing: true, | ||
breadcrumbs: true, | ||
errors: true, | ||
}), | ||
], | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import * as Sentry from "@sentry/nextjs"; | ||
|
||
Sentry.init({ | ||
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN, | ||
enabled: process.env.NODE_ENV === "production", | ||
tracesSampleRate: 1, | ||
debug: false, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import * as Sentry from "@sentry/nextjs"; | ||
import { supabaseIntegration } from "@supabase/sentry-js-integration"; | ||
import { createClient } from "@v1/supabase/client"; | ||
|
||
const client = createClient(); | ||
|
||
Sentry.init({ | ||
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN, | ||
tracesSampleRate: 1, | ||
debug: false, | ||
enabled: process.env.NODE_ENV === "production", | ||
integrations: [ | ||
supabaseIntegration(client, Sentry, { | ||
tracing: true, | ||
breadcrumbs: true, | ||
errors: true, | ||
}), | ||
], | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"extends": "@v1/typescript/react-library.json", | ||
"compilerOptions": { | ||
"baseUrl": ".", | ||
"paths": { | ||
"@/*": ["./src/*"] | ||
} | ||
}, | ||
"include": ["."], | ||
"exclude": ["node_modules"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
{ | ||
"name": "trigger" | ||
"name": "trigger", | ||
"envs": { | ||
"TRIGGER_API_KEY": { | ||
"description": "The API key to use for Trigger", | ||
"required": true | ||
}, | ||
"TRIGGER_PROJECT_ID": { | ||
"description": "The project ID to use for Trigger (https://trigger.dev/docs/trigger-config)", | ||
"required": true | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
{ | ||
"name": "upstash" | ||
"name": "upstash", | ||
"envs": { | ||
"UPSTASH_REDIS_REST_URL": { | ||
"description": "The URL to use for Upstash", | ||
"required": true | ||
}, | ||
"UPSTASH_REDIS_REST_TOKEN": { | ||
"description": "The token to use for Upstash", | ||
"required": true | ||
} | ||
} | ||
} |