Replies: 3 comments 1 reply
-
I forgot to mention, when the Node server not running and I already build using |
Beta Was this translation helpful? Give feedback.
-
edit
to
replace "192.168.5.80" with the ip of your dev device |
Beta Was this translation helpful? Give feedback.
-
You may also need to add the following to the vite.config.ts (.js): export default defineConfig({
//...
server: {
host: '0.0.0.0', // Accept connections from LAN
port: 5173,
strictPort: true,
hmr: {
host: '192.168.0.123', // Your machine's local IP address
}
},
// ...
}); |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I develop a mobile web from a Mac, I want to access the site using my Android device running in the same network
Usually I can access it normally when I host on 0.0.0.0 or using tunnel like ngrok back when I use normal Laravel
Now I want to try Inertiajs, it seems I need to access two running backend in development*, the Node server and the Laravel server. But when I access the Laravel address from my mobile phone, react-refresh throw this error
How do I let react-refresh know the IP Address of my development server?
Beta Was this translation helpful? Give feedback.
All reactions