wordpress-playground
wordpress-playground copied to clipboard
Support uploads to paths different than /wp-content/uploads
https://github.com/WordPress/wordpress-wasm/pull/48 Introduced a support for file uploads. Unfortunately it introduces an assumption that all requests to /wp-content/uploads/*
should be resolved from the WASM filesystem, and all other non-PHP requests should be resolved from the server where wordpress-wasm is hosted.
Let's relax that constraint and correctly serve the static files from either the server or the WAASM filesystem regardless of their path.