Download wp-calypso/client/server/config/index.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 524 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/server/config/index.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/server/config/index.js
-
curl -L -o index.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/server/config/index.js
524 Bytes
| const configPath = require( 'path' ).resolve( __dirname, '..', '..', '..', 'config' ); | |
| const { default: createConfig } = require( '@automattic/create-calypso-config' ); | |
| const parser = require( './parser' ); | |
| const { serverData, clientData } = parser( configPath, { | |
| env: process.env.CALYPSO_ENV || process.env.NODE_ENV || 'development', | |
| enabledFeatures: process.env.ENABLE_FEATURES, | |
| disabledFeatures: process.env.DISABLE_FEATURES, | |
| } ); | |
| module.exports = createConfig( serverData ); | |
| module.exports.clientData = clientData; | |