Skip to content

Dev server set to: http://true:5173 #1

@jeremy-step

Description

@jeremy-step

Version: 1.0.1

Bug Description

When the host option is set to true, the generated nette.json file includes:

devServer: "http://true:5173"

Steps To Reproduce

Set the host option to true and run the dev server.

Expected Behavior

Mantain localhost as default host when true is used as value,

Possible Solution

  • When true is set as host, default to localhost as the host value.
  • Add a new defaultHost option to the plugin config.

I know this is a completely new feature, but when developing with docker, the vite dev server doesn't work with standard host options.

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