Timed jobs move from in-process timers to a job registry run by pg-boss: once per schedule across processes, retries, run history, cron schedules in the church timezone, and an admin Background jobs page with Run now. Playwright end-to-end tests run against their own seeded database. A Gitea Actions workflow runs backend tests, frontend checks and the e2e tests, and deploys v* tags with scripts/deploy.sh once secrets are set. Also fixes the at-the-door check-in count for multi-day tickets. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
21 lines
736 B
TypeScript
21 lines
736 B
TypeScript
import type { NextConfig } from "next";
|
|
import { withSentryConfig } from "@sentry/nextjs";
|
|
|
|
const nextConfig: NextConfig = {
|
|
// The end-to-end tests run their own dev server; a separate build folder keeps it
|
|
// from clashing with one already running.
|
|
distDir: process.env.NEXT_DIST_DIR || ".next",
|
|
images: {
|
|
domains: ['images.unsplash.com'],
|
|
},
|
|
compiler: {
|
|
removeConsole: process.env.NODE_ENV === 'production',
|
|
},
|
|
};
|
|
|
|
// A no-op wrap when SENTRY_DSN isn't configured for this deployment — safe in
|
|
// every environment (dev, or a fresh deploy that hasn't set up Sentry yet).
|
|
export default process.env.NEXT_PUBLIC_SENTRY_DSN
|
|
? withSentryConfig(nextConfig, { silent: true, disableLogger: true })
|
|
: nextConfig;
|