Skip to content
HomeGitHub

Advisories

Advisories are shown, never applied. Nearhost does not edit files on the remote machine. In the TUI they render in yellow beneath the routes, with a snippet you can copy by pressing y.

Appears when another enabled project forwards the same loopback port. Only one project can bind it on your laptop, so give this one its own port. Nearhost suggests a free one:

Terminal window
VITE_PORT=5175

At start time the same clash is an error.

Appears when Vite is present and nothing sets its port. Vite will use 5173, which every other Vite project also uses.

Set the port in the Vite config:

vite.config.ts
export default defineConfig({
server: {
port: 5175,
},
});

Under Laravel Sail, set it in .env instead:

Terminal window
VITE_PORT=5175

Appears when Vite serves the project directly and server.allowedHosts does not include the alias. Vite rejects requests for hostnames it does not know.

vite.config.ts
export default defineConfig({
server: {
allowedHosts: ['myapp.test'],
},
});

Laravel only. Appears when APP_URL in .env is not https://<alias>. Generated links use that value, so set it to the alias:

Terminal window
APP_URL=https://myapp.test

See Discovery for how advisories are produced.