-
-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Currently the detection is done via nette.json
file, which is ok for local development. But once you want to use vite on the server, this wont work and you have to enter the url manualy via devServer
option.
Which is ok, but the developer experience for that cloud be better. It would be nice if this worked like with setting debug mode via cookie. So you would check if a cookie with the name nette-vite (like nette-debug) is set with the url https://localhost:5173, and enable the dev server.
Or you could allow function in the devServer, so we could write this logic ourselfs. Something like this:
devServer: App\Services\ViteCookie
Metadata
Metadata
Assignees
Labels
No labels