Vite dev server: support netlify dev
See original GitHub issueIs your feature request related to a problem? Please describe.
netlify dev doesn’t work with vite dev server. netlify dev starts a proxy server which redirect to vite dev server. However vite dev server replies with ok
. I suspect this might be due to host mismatch, since the proxy and the server and on different ports.
Describe the solution you’d like vite dev server and netlify dev should be friends.
Describe alternatives you’ve considered Checked the vite docs for a way to relax the hostname checking
Additional context Reproduction repository: https://github.com/franciscolourenco/netlify-dev-vite
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Trouble setting up netlify dev with vite and npm monorepos
I'm trying to set up an npm monorepo for a large project that is logical to be broken down into its own packages:...
Read more >Deploying a Static Site - Vite
Vite is installed as a local dev dependency in your project, ... Vite also supports Server Side Rendering. ... Azure DevOps). Import the...
Read more >Developing with Vite - Vite Ruby
In this section, we'll cover the basics to get started with Vite in Ruby web apps. Development Server #. Run bin/vite dev to...
Read more >Build and Deploy a Single Page App with React, Vite, and ...
This is a large undertaking, but it accurately describes the whole development cycle. The application will be deployed to Netlify.
Read more >Set up Vite local dev with the Netlify CLI | egghead.io
In this lesson, you'll globally install the Netlify CLI and use its dev command to run your site locally. Netlify automatically detects if...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I use them together like this:
Then run two commands:
with lastest version each time we start the server a random port is used so it’s need to add
functionsPort = 8885
in netlife dev config like below:and vite config :