@molecule/api-code-sandbox-flyio 1.0.15 → 1.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/provider.d.ts.map +1 -1
- package/dist/provider.js +6 -7
- package/package.json +1 -1
package/dist/provider.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../src/provider.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAMH,OAAO,KAAK,EAUV,eAAe,EAEhB,MAAM,4BAA4B,CAAA;AAGnC,OAAO,EAAE,YAAY,EAAgC,MAAM,UAAU,CAAA;AAsBrE,OAAO,EAAmD,KAAK,WAAW,EAAE,MAAM,cAAc,CAAA;AAEhG,OAAO,KAAK,EAEV,WAAW,EAUZ,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../src/provider.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAMH,OAAO,KAAK,EAUV,eAAe,EAEhB,MAAM,4BAA4B,CAAA;AAGnC,OAAO,EAAE,YAAY,EAAgC,MAAM,UAAU,CAAA;AAsBrE,OAAO,EAAmD,KAAK,WAAW,EAAE,MAAM,cAAc,CAAA;AAEhG,OAAO,KAAK,EAEV,WAAW,EAUZ,MAAM,YAAY,CAAA;AAk4DnB;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAC5B,MAAM,CAAC,EAAE,WAAW,EACpB,MAAM,CAAC,EAAE,YAAY,EACrB,KAAK,CAAC,EAAE,WAAW,GAAG,IAAI,GACzB,eAAe,CAEjB"}
|
package/dist/provider.js
CHANGED
|
@@ -635,17 +635,16 @@ class FlyioSandboxProvider {
|
|
|
635
635
|
*/
|
|
636
636
|
async assignSharedIpv4(app) {
|
|
637
637
|
try {
|
|
638
|
-
//
|
|
639
|
-
// (
|
|
640
|
-
//
|
|
641
|
-
// so its
|
|
642
|
-
// "Loading preview…" forever.
|
|
643
|
-
//
|
|
638
|
+
// ONLY `type` — verified against the live API 2026-08-09. Both `region`
|
|
639
|
+
// ("region selection is not supported for this IP type", 400) and
|
|
640
|
+
// `org_slug` are rejected for a shared IPv4; sending either left every
|
|
641
|
+
// sandbox app WITHOUT a public IP, so its preview URL never routed and the
|
|
642
|
+
// IDE hung on "Loading preview…" forever. The org derives from the app and
|
|
643
|
+
// a shared v4 is global (no region).
|
|
644
644
|
await this.client.request(`/apps/${app}/ip_assignments`, {
|
|
645
645
|
method: 'POST',
|
|
646
646
|
body: {
|
|
647
647
|
type: this.config.ipAssignmentType ?? 'shared_v4',
|
|
648
|
-
region: this.region(),
|
|
649
648
|
},
|
|
650
649
|
});
|
|
651
650
|
}
|