the project cannot be automatically opened in the browser #16260
Unanswered
1haoxiaopeng
asked this question in
Q&A
Replies: 1 comment
-
Hi there, export default {
server: {
open: true // or specify a string URL pathname to open a specific page
}
} For example, if you want to open a specific page like /docs/index.html, you can configure it like this: export default {
server: {
open: '/docs/index.html'
}
} For further information, you can refer to documentation here Hope it helps you! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want the project to automatically open in the browser when it starts, so I have made the following configuration
vite --open
server: {open: true}
But it still cannot achieve what I want
How can I do it to solve this problem
Beta Was this translation helpful? Give feedback.
All reactions