Skip to content

Support for detecting devServer via cookie #6

@lubomirblazekcz

Description

@lubomirblazekcz

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions