Download next.config.js from droidcv/next: direct link, hf CLI and curl.
- Browser
- Download file 708 Bytes
-
https://huggingface.co/spaces/droidcv/next/resolve/main/next.config.js
- Command line
-
hf download hf://spaces/droidcv/next/next.config.js
-
curl -L -o next.config.js https://huggingface.co/spaces/droidcv/next/resolve/main/next.config.js
708 Bytes
| /** @type {import('next').NextConfig} */ | |
| const nextConfig = { | |
| // (Optional) Export as a static site | |
| // See https://nextjs.org/docs/pages/building-your-application/deploying/static-exports#configuration | |
| output: 'export', // Feel free to modify/remove this option | |
| // Override the default webpack configuration | |
| webpack: (config) => { | |
| // Ignore node-specific modules when bundling for the browser | |
| // See https://webpack.js.org/configuration/resolve/#resolvealias | |
| config.resolve.alias = { | |
| ...config.resolve.alias, | |
| "sharp$": false, | |
| "onnxruntime-node$": false, | |
| } | |
| return config; | |
| }, | |
| }; | |
| module.exports = nextConfig; | |