Spaces:
Build error
Build error
Mehdi commited on
Upload next.config.js with huggingface_hub
Browse files- next.config.js +28 -0
next.config.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/** @type {import('next').NextConfig} */
|
| 2 |
+
const nextConfig = {
|
| 3 |
+
output: 'standalone',
|
| 4 |
+
experimental: {
|
| 5 |
+
appDir: true,
|
| 6 |
+
},
|
| 7 |
+
i18n: {
|
| 8 |
+
locales: ['fa', 'en'],
|
| 9 |
+
defaultLocale: 'fa',
|
| 10 |
+
localeDetection: false,
|
| 11 |
+
},
|
| 12 |
+
images: {
|
| 13 |
+
domains: ['localhost'],
|
| 14 |
+
},
|
| 15 |
+
webpack: (config, { isServer }) => {
|
| 16 |
+
if (!isServer) {
|
| 17 |
+
config.resolve.fallback = {
|
| 18 |
+
...config.resolve.fallback,
|
| 19 |
+
fs: false,
|
| 20 |
+
net: false,
|
| 21 |
+
tls: false,
|
| 22 |
+
};
|
| 23 |
+
}
|
| 24 |
+
return config;
|
| 25 |
+
},
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
module.exports = nextConfig
|