-
Install the Hiddify Library: Use the provided npm installation command to get the hiddify library.
npm install hiddify@latest
-
Load the Configuration: Import the hiddify module and load the configuration file.
const Hiddify = require('hiddify'); const config = Hiddify.loadHiddifyConfig(); -
Configure Hiddify: Set up the configuration to determine which parts of the Next.js app to hide.
Hiddify.setHiddifyAppTitle('App Title'); Hiddify.setHiddifyLogo('Logo'); -
Apply Hiddification: Use the
Hiddify.setHiddifiedAppmethod to apply the hiding to the Next.js app instance.const app = Next.js.createNextApp({ id: 'myApp', configuration: { hiddifiedApp: true } }); app.useHiddify(); -
Customize Hiddification Options: Adjust the configuration as needed, such as hiding specific sections or using toggles.
Hiddify.setHiddifiedAppOptions({ hideAppTitle: true, hideLogo: true }); -
Update Commands: After applying hiddify, update all Next.js commands to reflect the changes.
Next.js.config({ hiddifiedApp: true }); -
Test the Application: Ensure that the application no longer displays the hidden parts and that it functions as expected.
console.log('Next.js application is now hiddified.');
By following these steps, you can effectively use hiddify to enhance the user experience by hiding unnecessary parts of your Next.js application.




