Download slate/site/next.config.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 509 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/slate/site/next.config.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/slate/site/next.config.js
-
curl -L -o next.config.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/slate/site/next.config.js
509 Bytes
| const fs = require('fs') | |
| const path = require('path') | |
| module.exports = { | |
| webpack: config => { | |
| config.module.rules.push({ | |
| test: /\.js$/, | |
| enforce: 'pre', | |
| exclude: [/node_modules[\\\/]@next/, /node_modules[\\\/]next/], | |
| use: [ | |
| { | |
| loader: require.resolve('source-map-loader'), | |
| }, | |
| ], | |
| }) | |
| return config | |
| }, | |
| // https://answers.netlify.com/t/basic-nextjs-website-failing-to-build-with-exit-code-129/120273/2 | |
| experimental: { | |
| cpus: 1, | |
| }, | |
| } | |