what is your APP_URL set to?
Oct 27, 2023
2
Level 8
How to change APP_URL port for Vite?
Hello,
I started using Vite in testing and I noticed that the npm run dev command shows:
➜ APP_URL: http://localhost:8000
Now hot reload won't work because I run my local server on port 80, using php artisan serve --port=80
I managed to make it work by adding --host to the npm command: npm run dev --host.
Now hot reload works, but I still see:
➜ APP_URL: http://localhost:8000
Is there a way to change the default port for npm so that I will both see localhost:80 and also won't need to manually add --host?
Thanks
Level 122
1 like
Please or to participate in this conversation.