Next.js Webhook Server & Developer Dashboard
Trigger simulated webhooks on the left panel or link a live LINE webhook to see messages populate here.
1. Expose your local port (default 3000) using a tunneling service like ngrok:
2. Update the NEXT_PUBLIC_APP_URL environment variable in your .env.local file to point to your new public HTTPS address. Restart Next.js dev server.
3. Create a channel under the **Messaging API** in the LINE Developers Console.
4. Set the **Webhook URL** in the Messaging API tab to your public URL suffixed with /api/line/webhook (e.g. https://xxxx.ngrok-free.app/api/line/webhook), verify it, and enable **Use Webhook**.
5. Grab the **Channel Secret** and **Channel Access Token** from the console and paste them in .env.local. Restart the server.