@molecule/api-code-sandbox-flyio 1.0.14 → 1.0.15
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 -1
- 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;AAm4DnB;;;;;;;;;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,11 +635,16 @@ class FlyioSandboxProvider {
|
|
|
635
635
|
*/
|
|
636
636
|
async assignSharedIpv4(app) {
|
|
637
637
|
try {
|
|
638
|
+
// NO org_slug: the ip_assignments endpoint derives the org from the app
|
|
639
|
+
// (like the private-IP allocation) and 400s "unknown field org_slug" when
|
|
640
|
+
// it is sent — which silently left every sandbox app WITHOUT a public IP,
|
|
641
|
+
// so its `<app>.fly.dev` preview URL never routed and the IDE hung on
|
|
642
|
+
// "Loading preview…" forever. Same fix that was already applied to the
|
|
643
|
+
// private-address allocation.
|
|
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
648
|
region: this.region(),
|
|
644
649
|
},
|
|
645
650
|
});
|