Download next.js/test/development/basic/asset-prefix/fixture/next.config.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 635 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/development/basic/asset-prefix/fixture/next.config.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/development/basic/asset-prefix/fixture/next.config.js
-
curl -L -o next.config.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/development/basic/asset-prefix/fixture/next.config.js
635 Bytes
| const ASSET_PREFIX = '/custom-asset-prefix' | |
| module.exports = { | |
| assetPrefix: ASSET_PREFIX, | |
| i18n: { | |
| locales: ['en-US'], | |
| defaultLocale: 'en-US', | |
| }, | |
| async rewrites() { | |
| return { | |
| beforeFiles: [ | |
| { | |
| source: `/:locale/${ASSET_PREFIX}/_next/:path*`, | |
| destination: `/${ASSET_PREFIX}/_next/:path*`, | |
| locale: false, | |
| }, | |
| ], | |
| afterFiles: [ | |
| { | |
| source: `/${ASSET_PREFIX}/:path*`, | |
| destination: '/:path*', | |
| }, | |
| { | |
| source: '/not-custom-asset-prefix/:path*', | |
| destination: '/:path*', | |
| }, | |
| ], | |
| } | |
| }, | |
| } | |