-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.ts
More file actions
49 lines (45 loc) · 970 Bytes
/
Copy pathnext.config.ts
File metadata and controls
49 lines (45 loc) · 970 Bytes
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
import type { NextConfig } from 'next';
const nextConfig: NextConfig = {
/* config options here */
output: 'standalone',
reactStrictMode: false,
experimental: {
serverActions: {
bodySizeLimit: '10mb',
},
},
transpilePackages: ['@t3-oss/env-nextjs', '@t3-oss/env-core'],
async redirects() {
return [
{
source: '/projects/:projectId',
destination: '/projects/:projectId/logical',
permanent: false,
},
];
},
images: {
remotePatterns: [
// For Google profile images
{
protocol: 'https',
hostname: '*.googleusercontent.com',
pathname: '/**',
},
// For minio (local)
{
protocol: 'http',
hostname: 'localhost',
port: '9000',
pathname: '/**',
},
// For minio (production)
{
protocol: 'https',
hostname: 'tracex-minio.cloud.ce.kmitl.ac.th',
pathname: '/**',
},
],
},
};
export default nextConfig;