Skip to content

npm run dev --host doesn't host app on network #8119

@vinliao

Description

@vinliao

Describe the bug

The --host args is used to host app on the network. It doesn't work on the latest SvelteKit install. npx vite dev --host is fine, and that suggest to me it might be a SvelteKit issue.

Reproduction

  1. npm create svelte@latest my-app
  2. cd my-app
  3. npm i
  4. npm run dev --host
    Screenshot from 2022-12-13 20-48-50
    Screenshot from 2022-12-13 20-49-12

Logs

No response

System Info

System:
    OS: Linux 6.0 Fedora Linux 37 (Workstation Edition)
    CPU: (8) x64 Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz
    Memory: 12.78 GB / 15.37 GB
    Container: Yes
    Shell: 5.9 - /usr/bin/zsh
  Binaries:
    Node: 18.12.1 - /usr/bin/node
    Yarn: 3.3.0 - /usr/local/bin/yarn
    npm: 9.2.0 - /usr/local/bin/npm
  Browsers:
    Firefox: 107.0.1
  npmPackages:
    @sveltejs/adapter-auto: next => 1.0.0-next.90 
    @sveltejs/kit: next => 1.0.0-next.585 
    svelte: ^3.54.0 => 3.54.0 
    vite: ^4.0.0 => 4.0.1

Severity

annoyance

Additional Information

No response

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