Spaces:
Sleeping
Sleeping
Upload next.config.js with huggingface_hub
Browse files- next.config.js +19 -0
next.config.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/** @type {import('next').NextConfig} */
|
| 2 |
+
const nextConfig = {
|
| 3 |
+
reactStrictMode: true,
|
| 4 |
+
swcMinify: true,
|
| 5 |
+
images: {
|
| 6 |
+
unoptimized: true,
|
| 7 |
+
},
|
| 8 |
+
webpack: (config, { isServer }) => {
|
| 9 |
+
if (!isServer) {
|
| 10 |
+
config.resolve.fallback = {
|
| 11 |
+
...config.resolve.fallback,
|
| 12 |
+
fs: false,
|
| 13 |
+
};
|
| 14 |
+
}
|
| 15 |
+
return config;
|
| 16 |
+
},
|
| 17 |
+
};
|
| 18 |
+
|
| 19 |
+
module.exports = nextConfig;
|