react-code-dataset / next.js /test /production /standalone-mode /response-cache /app /next.config.js
Download next.js/test/production/standalone-mode/response-cache/app/next.config.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 542 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/production/standalone-mode/response-cache/app/next.config.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/production/standalone-mode/response-cache/app/next.config.js
-
curl -L -o next.config.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/production/standalone-mode/response-cache/app/next.config.js
542 Bytes
| module.exports = { | |
| output: 'standalone', | |
| trailingSlash: true, | |
| rewrites() { | |
| return { | |
| beforeFiles: [ | |
| { | |
| source: '/news/:path/', | |
| destination: '/news/:path*/', | |
| }, | |
| ], | |
| afterFiles: [ | |
| { | |
| source: '/somewhere', | |
| destination: '/', | |
| }, | |
| ], | |
| fallback: [ | |
| { | |
| source: '/:path*', | |
| destination: '/:path*', | |
| }, | |
| { | |
| source: '/(.*)', | |
| destination: '/seo-redirects', | |
| }, | |
| ], | |
| } | |
| }, | |
| } | |