Skip to content

Use dynamic site URL to allow secure tunnels - #858

Closed
sejas wants to merge 1 commit into
trunkfrom
add/dynamic-site-url
Closed

Use dynamic site URL to allow secure tunnels#858
sejas wants to merge 1 commit into
trunkfrom
add/dynamic-site-url

Conversation

@sejas

@sejas sejas commented Jan 30, 2025

Copy link
Copy Markdown
Member

Related issues

Proposed Changes

  • Set WP_SITEURL and WP_HOME as mu plugin
  • Our goal is that using a secure tunnel as ngrok we could use Jetpack in online mode.

The new upload images are still uploaded with the localhost:8881 domain

Testing Instructions

  • Run npm start
  • Make sure existing sites work as expected
  • Create a new site
  • Confirm it works as expected
  • Access http://whatever.localhost:8881 and confirm it works as expected
  • Run ngrok http 8881 where the port is what the site uses by default
  • Open the ngrok link observe the site opens correctly and you can navigate through the pages
  • The links and images saved in the database don't change pointing to localhost
studio-ngrok2.mp4

Pre-merge Checklist

  • Have you checked for TypeScript, React or other console errors?
@sejas sejas self-assigned this Jan 30, 2025
@sejas sejas mentioned this pull request Jan 30, 2025
2 tasks
@sejas

sejas commented Feb 4, 2025

Copy link
Copy Markdown
Member Author

Testing with empty Studio sites I got an infinite redirection when trying to access /wp-admin. This redirection does not happen when loading Alexa's site that I pulled from WPcom.

Screenshot 2025-02-04 at 02 00 58
@sejas sejas closed this Feb 5, 2025
@wojtekn
wojtekn deleted the add/dynamic-site-url branch February 11, 2025 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant