Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If I set server.host as true and server.open it doesn't work #3355

Closed
lubomirblazekcz opened this issue May 11, 2021 · 0 comments · Fixed by #3383
Closed

If I set server.host as true and server.open it doesn't work #3355

lubomirblazekcz opened this issue May 11, 2021 · 0 comments · Fixed by #3383
Labels
p3-minor-bug An edge case that only affects very specific usage (priority)

Comments

@lubomirblazekcz
Copy link
Contributor

Describe the bug

When I set server.host as true and have set open, it opens in browser as undefined:3000/index.html

Reproduction

export default {
    server: {
        host: true,
        open: "/index.html"
    },
}

System Info

  System:
    OS: macOS 11.3.1
    CPU: (8) x64 Apple M1
    Memory: 73.75 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 14.15.5 - ~/.nvm/versions/node/v14.15.5/bin/node
    Yarn: 1.22.10 - ~/.nvm/versions/node/v14.15.5/bin/yarn
    npm: 7.11.2 - ~/.nvm/versions/node/v14.15.5/bin/npm
  Browsers:
    Chrome: 90.0.4430.93
    Firefox: 88.0.1
    Firefox Developer Edition: 89.0
    Safari: 14.1
  npmPackages:
    vite: ^2.3.0 => 2.3.0 
@Shinigami92 Shinigami92 added bug p3-minor-bug An edge case that only affects very specific usage (priority) labels May 11, 2021
antfu pushed a commit that referenced this issue May 12, 2021
Co-authored-by: Nihal Gonsalves <nihal@nihalgonsalves.com>
fi3ework pushed a commit to fi3ework/vite that referenced this issue May 22, 2021
…3383)

Co-authored-by: Nihal Gonsalves <nihal@nihalgonsalves.com>
@github-actions github-actions bot locked and limited conversation to collaborators Jul 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
p3-minor-bug An edge case that only affects very specific usage (priority)
Projects
None yet
2 participants