-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.ts
More file actions
43 lines (35 loc) · 983 Bytes
/
next.config.ts
File metadata and controls
43 lines (35 loc) · 983 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
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
// Disable React strict mode for Three.js compatibility
reactStrictMode: false,
images: {
remotePatterns: [
{
protocol: "https",
hostname: "images.unsplash.com",
pathname: "/**",
},
],
},
// Ignore TypeScript build errors (React Three Fiber types are provided at runtime)
typescript: {
ignoreBuildErrors: true,
},
// webpack: (config) => {
// // Handle GLSL shaders
// config.module.rules.push({
// test: /\.(glsl|vs|fs|vert|frag)$/,
// type: 'asset/source',
// });
// // Suppress warnings for certain modules
// config.resolve.fallback = {
// ...config.resolve.fallback,
// fs: false,
// path: false,
// };
// return config;
// },
// Transpile Three.js and R3F packages
transpilePackages: ["three", "@react-three/fiber", "@react-three/drei"],
};
export default nextConfig;