如何更改端口SolidJS服务器在本地环境中运行的内容
最初设置实体并以npm start
开始启动,它将在http:// localhost:3000/
上运行。
您如何更改它运行的端口?
After initally setting up Solid and starting it with npm start
it runs on http://localhost:3000/
.
How do you change what port it runs on?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
VITE
是用于运行本地服务器环境的软件包。您可以在名为
vite.config.ts
的文件中更改其设置。默认情况下,设置不在那里,但是您可以这样设置:
有关此设置和其他设置的文档可以在 vite文档
vite
is the package that is used to run the local server environment.You can change it's settings in a file called
vite.config.ts
.By default the setting isn't in there, but you can set it like so:
Documentation about this and other settings can be found in the vite documentation