-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hostname env.HOST not_defined #467
Comments
I have this problem too. It started some weeks ago on two of my development macs. HOST=(the cloudflare one) It's a little inconvenient because you have to update the HOST variable every time you run the dev script. I sense there is something in the development environment, like node version, etc. macOS Ventura (13.5.1) |
Thank you for confirming I'm not crazy! It's been driving me nuts! Did you find a faster way to get the tunnel name while |
With yarn you have the --verbose parameter, you can look for the url in the log |
@nemwiper Thanks for the info, I'm experiencing same issue on Mac, node v18, your fix helped me. Any idea why the environment variables are not available when running npm run dev? |
The
HOST
environmental variable is null when runningnpm run dev
on some systems.I can't for the life of me figure out why it happens, but it only happens on some systems, and when it happens, it always happens consistently on those systems.
shopify-app-template-php/web/app/Providers/AppServiceProvider.php
Line 37 in f3d8e9f
As a result, the laravel app doesn't really work at all and the app inside shopify doesn't show anything.
I've followed the instructions to the letter in 3 macOs and 5 or 6 linux installations, with the latest node and php versions. It only worked in 1 mac and 1 linux instance.
The same exact project files also only work on these installations.
The iframe src inside shopify points to the new tunnel address, however the page itself is errored and invisible.
I'm really new to both Laravel and node/vite, so I can't really figure out where or why things are going wrong.
Works in:
Mac VM (UTM)
Debian (Parallels)
Doesn't work in:
Mac (baremetal)
Mac VM (Parallels)
Debian (UTM)
Fedora (Parallels)
All VMs were vanilla installations and had shared networking with the base M1 Pro machine.
Any help or ideas on how I could go abount hunting this issue down, would be greatly appreciated.
The text was updated successfully, but these errors were encountered: