-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.ts
More file actions
56 lines (53 loc) · 1.32 KB
/
Copy pathnext.config.ts
File metadata and controls
56 lines (53 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import { withSentryConfig } from "@sentry/nextjs";
import type { NextConfig } from "next";
import createNextIntlPlugin from "next-intl/plugin";
const withNextIntl = createNextIntlPlugin("./i18n/request.ts");
const nextConfig: NextConfig = {
allowedDevOrigins: ["avisio.lvh.me"],
experimental: {
typedEnv: true,
},
reactStrictMode: true,
poweredByHeader: false,
serverExternalPackages: [
"@ai-sdk/anthropic",
"@ai-sdk/google",
"@ai-sdk/openai",
"@ai-sdk/moonshotai",
"drizzle-orm",
"@neondatabase/serverless",
"shiki",
"posthog-node",
"stripe",
"@react-pdf/renderer",
"pino",
"pino-pretty",
],
// Required to support PostHog trailing slash API requests
skipTrailingSlashRedirect: true,
async rewrites() {
return [
{
source: "/ingest/static/:path*",
destination: "https://eu-assets.i.posthog.com/static/:path*",
},
{
source: "/ingest/:path*",
destination: "https://eu.i.posthog.com/:path*",
},
];
},
};
export default withSentryConfig(withNextIntl(nextConfig), {
org: "owittek-it-services",
project: "avisio",
silent: !process.env.CI,
widenClientFileUpload: true,
tunnelRoute: "/monitoring",
webpack: {
automaticVercelMonitors: true,
treeshake: {
removeDebugLogging: true,
},
},
});