Preview an existing React or Vite app on your phone
Keep the project in its folder on your computer, save the start command it already uses, and open the running app from a paired device.
Reviewed against Amble's public guides. Check current device support and plan limits before you rely on them.
The short answer
Yes. Open the existing Vite project on the computer, save its start command. Start the preview there, then open the project or app from a paired phone or browser client. The project stays in its own folder, and the computer keeps running the app.
Before you start
- The project folder on the computer. Node.js and the project's package manager are already installed, and the normal start command works in a plain terminal.
- A compatible client. Use a browser or a supported phone client; check preview devices first.
- The host awake and online. The preview serves from that computer; a sleeping host cannot answer the phone.
- No agent required. A preview can run on its own. Connect an agent only when you also want the project changed.
Save the Vite start command
Open the folder with package.json
Install dependencies with the project's existing lockfile. Keep the framework version and package manager the project already uses.Add a preview service
In the project's settings, open Scripts and add a preview service for Vite:npm run dev -- --host 127.0.0.1 --port 5173 --strictPort. The strict port flag stops Vite silently moving to a different port.Using pnpm?
The equivalent command ispnpm run dev --host 127.0.0.1 --port 5173 --strictPort. Keep whichever package manager the project already uses.Add a backend only if you need one
If the Vite frontend calls a separate API, add a backend service and the frontend API proxy rather than hard-coding a second origin.
The Vite recipe has the exact configuration block, including SvelteKit projects whose dev script runs Vite.
Open it on your phone
Start the preview on the host
Start the preview service and confirm the app loads on the computer first. See open a preview.Pair the phone
Pair the device with the host and approve the project or app access you need. See device roles and access.Open the project or the shared app
An Owner connection can open the project; a Viewer with App-only access opens the shared app instead. The preview path follows the grant you approved.Test a click and a saved edit
Tap through one real interaction, then save a small source edit and check that it appears. A running process is not the same as a working app.
Same network, or away from it
On the local network the phone can reach the host directly, with no time limit and no paid plan. Away from that network the preview uses the relay, which needs Amble Premium or above and counts against that plan's allowance. Keep the host awake and online, and repeat the check on mobile data before you rely on the remote route.
Check off-network connection checks and current plan limits rather than assuming a quota. The preview is not a public website and does not publish the app.
What this does not prove
Not a deployment
- The preview serves from your computer, not public hosting.
- Publishing and deployment are separate workflows.
Not every device
- The preview proves the path you tried on the client you used.
- Other clients and native builds keep their own checks.
Not a passing test
- A running Vite process is not proof the change works.
- Read the terminal output and run the project checks.
Not a native app
- A browser preview does not create an app-store build.
- Native apps need their own target and tools.
Vite preview questions
Can I preview an existing Vite app on my phone?
Yes. Open the existing folder on the computer, save a Vite start command, start the preview there, then open the project or app from a paired phone or browser client.
Do I need to move the React project into Amble?
No. Amble opens the folder where the project already lives. Keep its package manager, framework version and build tools, and install dependencies with its existing lockfile.
Why does the recipe use strictPort?
The strict-port flag stops Vite silently moving to a different port. The preview then loads at the port you configured rather than an unexpected one.
Does the preview need a coding agent?
No. A preview can run on its own to test an existing app. Connect an agent when you also want the project changed.
Does it work away from my home network?
The host must stay awake and online. Local network viewing is direct. Off-network viewing uses the relay, which needs Amble Premium or above and counts against the plan allowance, so repeat the check on mobile data before relying on it.
Sources for Amble claims
- Public guide: start commands by app type
- Public guide: projects and start commands
- Public guide: app previews
- Public guide: pairing and device roles
- Public guide: connection checks
- Amble documentation
Competitor descriptions link to each vendor's public documentation. This page is published by Amble and is not a hands-on benchmark.