Vite 资产仍然位于生产服务器上的本地主机

Mah*_*tra 1 laravel vite

Vite 路径仍然是生产服务器上的 localhost

有人可以帮我看看为什么我的 Vite 资产显示

<script type="module" src="http://127.0.0.1:5173/@vite/client"></script>
<link rel="stylesheet" href="http://127.0.0.1:5173/resources/css/app.css" />
<script type="module" src="http://127.0.0.1:5173/resources/js/app.js"></script>
Run Code Online (Sandbox Code Playgroud)

而不是 Laravel Vite 中构建的资产?

Sha*_*imi 7

听起来好像您不小心将文件热传输到了公共目录中。删除它,它应该可以工作

该文件在运行开发服务器时使用,但会破坏生产