-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
76 lines (74 loc) · 1.63 KB
/
next.config.js
File metadata and controls
76 lines (74 loc) · 1.63 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
serverActions: {
bodySizeLimit: '4mb',
},
routeHandlerBodySizeLimit: '4mb',
},
// TypeScript errors will now fail the build (safety net removed)
// typescript: { ignoreBuildErrors: true },
poweredByHeader: false,
images: {
remotePatterns: [
{
protocol: "http",
hostname: "localhost",
},
{
protocol: "https",
hostname: "res.cloudinary.com",
},
{
protocol: "https",
hostname: "lh3.googleusercontent.com",
},
{
protocol: "https",
hostname: "echo.basalthq.com",
},
{
protocol: "https",
hostname: "engram1.blob.core.windows.net",
},
{
protocol: "https",
hostname: "basaltcrm.s3.us-west-or.io.cloud.ovh.us",
},
],
},
env: {
NEXT_PUBLIC_APP_VERSION: require("./package.json").version,
},
async redirects() {
return [
{
source: "/voicehub",
destination: "/echo",
permanent: true,
},
{
source: "/en/:path*",
destination: "/:path*",
permanent: true,
},
{
source: "/de/:path*",
destination: "/:path*",
permanent: true,
},
{
source: "/cz/:path*",
destination: "/:path*",
permanent: true,
},
{
source: "/uk/:path*",
destination: "/:path*",
permanent: true,
},
];
},
// output: "standalone", // Disabled for Plesk/Windows to avoid NTFS invalid file path errors
};
module.exports = nextConfig;