Spaces:
Build error
Build error
Mehdi commited on
Upload next.config.js with huggingface_hub
Browse files- next.config.js +5 -19
next.config.js
CHANGED
|
@@ -1,28 +1,14 @@
|
|
| 1 |
/** @type {import('next').NextConfig} */
|
| 2 |
const nextConfig = {
|
| 3 |
-
output: 'standalone',
|
| 4 |
experimental: {
|
| 5 |
-
appDir:
|
| 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
|
|
|
|
| 1 |
/** @type {import('next').NextConfig} */
|
| 2 |
const nextConfig = {
|
|
|
|
| 3 |
experimental: {
|
| 4 |
+
appDir: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
},
|
| 6 |
images: {
|
| 7 |
+
domains: ['localhost']
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
},
|
| 9 |
+
env: {
|
| 10 |
+
CUSTOM_KEY: process.env.CUSTOM_KEY
|
| 11 |
+
}
|
| 12 |
}
|
| 13 |
|
| 14 |
module.exports = nextConfig
|