1

Vite path still localhost on Production Server

Can someone help me why my Vite Assets showing

<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>

instead of the builded assets in Laravel Vite?

linktoahref
  • 7,812
  • 3
  • 29
  • 51

1 Answers1

0

Sounds like you accidentally transfered the file hot in the public directory. Delete it and it should work

The file is used when running the dev server but will break production

Shahid Karimi
  • 4,096
  • 17
  • 62
  • 104