Closed germaniuz closed 1 year ago
You should proxy a network resolvable address for this use case; not something resolvable only from the host. You can use setPublicProxyUrl to ensure that internal links still resolve to the development server.
Something like:
bud
.setProxyUrl('http://[host ipv4]')
.setPublicProxyUrl('http://sq.test')
If we proxy all WordPress assets there are significant issues with the admin interface because of WordPress' handling of cookies and cross-origin resource loading.
Personally, I recommend using solutions like Android Studio and Simulator.
Hi! With this settings I got error "Error occurred while trying to proxy: 192.168.3.29:3000/"
19 сент. 2023 г., в 10:31, Kelly Mears @.***> написал(а):
You should proxy a network resolvable address for this use case; not something resolvable only from the host. You can use setPublicProxyUrl https://bud.js.org/reference/bud.setPublicProxyUrl to ensure that internal links still resolve to the development server.
Something like:
bud .setProxyUrl('http://[host ipv4]') .setPublicProxyUrl('http://sq.test') If we proxy all WordPress assets there are significant issues with the admin interface because of WordPress' handling of cookies and cross-origin resource loading.
Personally, I recommend using solutions like Android Studio https://developer.android.com/studio/run/emulator and Simulator.
— Reply to this email directly, view it on GitHub https://github.com/roots/bud/issues/2449#issuecomment-1724974938, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACASLMXPNL7BEAMESXHP4KTX3FC5XANCNFSM6AAAAAA4Z6YMZI. You are receiving this because you authored the thread.
Probably worth giving https://github.com/talss89/bud-localtunnel a shot for something like this
Agreement
Describe the issue
When I use external IP in dev mode from another device (phone for example) I get only page without any styles or scripts, because urls has my proxy domain (http://sq.test/wp/pathtothemestyles) not an external IP address. But that proxy domain is unaccessable from remote device via wifi.
My config:
bud version 6.16.1
Expected Behavior
I expect my project loaded with styles and scripts on external device with external IP
Actual Behavior
I get page loaded without styles or scripts, because of the fact that url for styles is an proxy url, not external url
Steps To Reproduce
1.Install sage
version
6.16.1
Logs
No response
Configuration
No response
Relevant .budfiles
No response