@molecule/api-code-sandbox-flyio 1.0.14 → 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 -2
- 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,12 +635,16 @@ class FlyioSandboxProvider {
|
|
|
635
635
|
*/
|
|
636
636
|
async assignSharedIpv4(app) {
|
|
637
637
|
try {
|
|
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).
|
|
638
644
|
await this.client.request(`/apps/${app}/ip_assignments`, {
|
|
639
645
|
method: 'POST',
|
|
640
646
|
body: {
|
|
641
647
|
type: this.config.ipAssignmentType ?? 'shared_v4',
|
|
642
|
-
org_slug: this.orgSlug(),
|
|
643
|
-
region: this.region(),
|
|
644
648
|
},
|
|
645
649
|
});
|
|
646
650
|
}
|