laravel / sail

Docker files for running a basic Laravel application.
https://laravel.com/docs/sail
MIT License
1.65k stars 470 forks source link

Can't navigate to any links after sharing my site by "sail share" #689

Closed z4yed closed 4 months ago

z4yed commented 4 months ago

Sail Version

1.26

Laravel Version

11

PHP Version

8.2

Operating System

macOS

OS Version

14.4.1 (23E224)

Description

After sharing my site, when using the Public HTTP url to navigate to pages such as Login or Register, I am getting the below error.

GET http://host.docker.internal/register net::ERR_NAME_NOT_RESOLVED

In .env I have:

APP_URL="http://rsnvoqfmf5.laravel-sail.site:8080"

I have also added trusted proxies in bootstrap/app.php

->withMiddleware(function (Middleware $middleware) {
        $middleware->trustProxies(at: [
            '*',
        ]);
...

Steps To Reproduce

  1. Install a fresh laravel project with JetStream (inertia+vue)
  2. Share the site.
    sail share
  3. Try using public http url and navigate to Login/Register etc. pages.
driesvints commented 4 months ago

Most likely this is a temp hiccup. Please give it some time and try again later.