chore: dev setup

This commit is contained in:
2026-02-24 16:22:08 +01:00
parent 6864903cff
commit 31685a458b
5 changed files with 21 additions and 4 deletions

View File

@@ -5,6 +5,7 @@
"description": "Technical problem solver's blog - practical insights and learning notes",
"scripts": {
"dev": "pnpm run seed:context && next dev --turbo",
"dev:native": "pnpm run seed:context && DATABASE_URI=postgres://directus:directus@127.0.0.1:54321/directus PAYLOAD_SECRET=dev-secret next dev --webpack",
"seed:context": "tsx ./seed-context.ts",
"build": "next build --webpack",
"start": "next start",

View File

@@ -1,10 +1,11 @@
import * as Sentry from "@sentry/nextjs";
const dsn = process.env.SENTRY_DSN;
const isProd = process.env.NODE_ENV === "production";
Sentry.init({
dsn,
enabled: Boolean(dsn),
enabled: isProd && Boolean(dsn),
tracesSampleRate: 1,
debug: false,
});

View File

@@ -1,10 +1,11 @@
import * as Sentry from "@sentry/nextjs";
const dsn = process.env.SENTRY_DSN;
const isProd = process.env.NODE_ENV === "production";
Sentry.init({
dsn,
enabled: Boolean(dsn),
enabled: isProd && Boolean(dsn),
tracesSampleRate: 1,
debug: false,