We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5c611c commit 8a53ccbCopy full SHA for 8a53ccb
packages/wp-now/src/config.ts
@@ -77,7 +77,13 @@ async function getAbsoluteURL() {
77
return getCodeSpaceURL(port);
78
}
79
if (isWebContainer()) {
80
- return HostURL.parse('http://localhost:' + port).toString();
+ return (
81
+ HostURL.parse('http://localhost:' + port)
82
+ .toString()
83
+ // Correct the bug in HostURL.parse – it should return https://
84
+ // instead of http://
85
+ .replace('http://', 'https://')
86
+ );
87
88
89
if (absoluteUrlFromBlueprint) {
0 commit comments