Step1
You need to be connected to the same wifi that you laptop is connected to
Step2
go to your vite.config.js
add server:{
host:true,
}
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
server: {
host: true,
} // add this
})
Step3
run npm run dev and you will see
Links that going to allow you to see access your website from you phone
example:
The End .