-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnext.config.mjs
More file actions
49 lines (47 loc) · 1.23 KB
/
next.config.mjs
File metadata and controls
49 lines (47 loc) · 1.23 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
/** @type {import('next').NextConfig} */
import { createRequire } from 'module';
const require = createRequire(import.meta.url);
const nextConfig = {
// Use standalone output only for Docker deployments
// Cloudflare Pages uses its own build process
output: process.env.NEXT_OUTPUT_STANDALONE === 'true' ? 'standalone' : undefined,
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'lh3.googleusercontent.com',
},
{
protocol: 'https',
hostname: 'images.unsplash.com',
},
{
protocol: 'https',
hostname: 'assets.aceternity.com',
},
],
},
// Turbopack configuration (Next.js 16+)
// Empty object to silence warning - webpack config is used for this project
turbopack: {},
// Webpack configuration (for backwards compatibility)
webpack: (config, { isServer }) => {
if (!isServer) {
config.resolve.fallback = {
...config.resolve.fallback,
http: false,
https: false,
net: false,
tls: false,
fs: false,
crypto: false,
stream: false,
url: false,
zlib: false,
querystring: false,
};
}
return config;
},
};
export default nextConfig;