-
Install Next.js:
- Visit the Next.js official website and download the installation script for your OS.
- Run the installation script to set up your Next.js server.
-
Set Up Hiddify:
- Install the Hiddify CLI using npm:
npm install
Use the following command to install the CLI dependencies:
npm install next-app next-app-config next-app-server next-server
- Install the Hiddify CLI using npm:
-
Configure Hiddify:
- Create a
.npxfile in your home directory, typically~/.npx:import 'next/server'; Config.set('keypair', { next_PUBLIC_key: 'your_next_PUBLIC_key', next_private_key: 'your_next_private_key' }); Config.set('nxtty', { next_nxtty_key: 'your_nxtty_key', next_nxtty_secret: 'your_nxtty_secret' }); Config.set('hiddify', { npx: 'next-app' }); - Install the CLI:
npm install
- Create a
-
Run Hiddify:
- Start the CLI with:
npm run cli
- Open the CLI interface.
- Start the CLI with:
-
Using the CLI:
- Write Next.js apps using the CLI. For example:
npm run cli npm start
This will start a development server.
- Write Next.js apps using the CLI. For example:
-
Security Considerations:
- Store keys securely. Use trusted key pairs and ensure all keys are stored in secure locations.
- Monitor for security threats and update your keys regularly.
-
Community and Help:
Look for Hiddify help guides or create a repository on GitHub for sharing experiences and tips.
By following these steps, you can effectively use Hiddify to manage and develop Next.js applications without writing CLI code.








