Vercel dev when offline

Is there a way to make vercel dev work while offline? I was shocked to see that, for local development, you must have an internet connection…

vercel dev does require an internet connection because vercel dev needs to:

  • Authenticate with Vercel’s services
  • Fetch project configuration and environment variables from Vercel
  • Simulate Vercel’s Edge Network features
  • Connect to Vercel’s APIs for various integration

For offline testing, you can use their built-in development server instead:

# For Next.js
npm run dev

# For other frameworks
npm start
# or
yarn dev

You’re telling me I need to authenticate before I can run a local server on my own computer? And then I need to fetch a project configuration from your server when there’s already a vercel.json file on my computer?

Furthermore, how does “npm start” or “yarn dev” have anything to do with this?

Running the built in development server offline is precisely what I am trying to do

Sorry, but this answer doesn’t make any sense

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.