Can't Compile Next.js 15.1.4 with Specific Network Connection #74782
Labels
bug
Issue was opened via the bug report template.
Developer Experience
Issues related to Next.js logs, Error overlay, etc.
invalid link
The issue was auto-closed due to a missing/invalid reproduction link. A new issue should be opened.
Link to the code that reproduces this issue
https://github.com/vercel/next.js/tree/canary/packages/create-next-app
To Reproduce
1.Install Next.js 15.1.4
2.Start the development server with npm run dev
3.Observe that the development server is accessible on the local network (i.e., other devices on the same network can access the app)
4.Connect to a specific network interface (e.g., a VPN or a specific Ethernet/Wi-Fi adapter)
5.Run npm run dev again
6.Observe that the app is stuck in the compilation stage and the web page is continuously loading
Current vs. Expected behavior
Current Behavior:
When running npm run dev in Next.js 15.1.4, the development server is accessible on the local network by default.
However, if I connected to a specific network interface (e.g., a VPN or a specific Ethernet/Wi-Fi adapter), the app fails to compile and gets stuck in the loading stage.
(Cannot work using
npm run dev -- --hostname localhost
too)Expected Behavior:
The developer should be able to run npm run dev in Next.js 15.1.4 without any issues, even when connected to a specific network interface.
Ideally, there should be an option to disable the local network accessibility and only expose the development server on the local machine.
Provide environment information
Which area(s) are affected? (Select all that apply)
Developer Experience
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
No response
The text was updated successfully, but these errors were encountered: