Set up a Laravel project on Codespaces using the Laravel Sail docker-compose.yml file. I am running ./vendor/bin/sail up
to start the Docker containers. Says app is now running at 0.0.0.0:80
,
When I go to the forwarded ports tab and attempt preview of port 80 - it goes to the home page but:
- The assets(css and js) are not loading
- When I attempt login, it redirects to
localhost/login
instead of thelocal address/login
I have already set the APP_URL
in .env
to the preview address at the forwarded ports tab.
I highly suspect this could be a url related issue. I could be wrong.
Any ideas on how I could resolve these two issues?
Thanks.