create-100x-mobile 0.6.0 → 0.6.2
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.
|
@@ -561,6 +561,15 @@ async function setupCloudflare(projectDir) {
|
|
|
561
561
|
return result;
|
|
562
562
|
}
|
|
563
563
|
// Step 2: cloudflare:login (alchemy login)
|
|
564
|
+
prompts_1.log.info("");
|
|
565
|
+
prompts_1.log.info(picocolors_1.default.bold("Cloudflare login — minimum scopes needed:"));
|
|
566
|
+
prompts_1.log.info(picocolors_1.default.dim(" • account:read, user:read"));
|
|
567
|
+
prompts_1.log.info(picocolors_1.default.dim(" • d1:write, workers:write, workers_scripts:write"));
|
|
568
|
+
prompts_1.log.info(picocolors_1.default.dim(" • offline_access"));
|
|
569
|
+
prompts_1.log.info(picocolors_1.default.dim(" Alchemy requests broader scopes by default. For tighter control,"));
|
|
570
|
+
prompts_1.log.info(picocolors_1.default.dim(" create a custom API Token at https://dash.cloudflare.com/profile/api-tokens"));
|
|
571
|
+
prompts_1.log.info(picocolors_1.default.dim(" and set CLOUDFLARE_API_TOKEN env var instead."));
|
|
572
|
+
prompts_1.log.info("");
|
|
564
573
|
try {
|
|
565
574
|
await (0, run_1.run)("bun", ["run", "cloudflare:login"], { cwd: projectDir });
|
|
566
575
|
result.loggedIn = true;
|
|
@@ -110,10 +110,10 @@ export async function deleteCloudflareObject(
|
|
|
110
110
|
): Promise<void> {
|
|
111
111
|
const workerUrl = requireStorageWorkerUrl();
|
|
112
112
|
const token = await requireInstantRefreshToken();
|
|
113
|
-
const response = await fetch(
|
|
113
|
+
const response = await fetch(\`\${workerUrl}/uploads/\${uploadId}\`, {
|
|
114
114
|
method: "DELETE",
|
|
115
115
|
headers: {
|
|
116
|
-
authorization:
|
|
116
|
+
authorization: \`Bearer \${token}\`,
|
|
117
117
|
},
|
|
118
118
|
});
|
|
119
119
|
|
|
@@ -15,7 +15,6 @@ function packageJsonTemplate(appName, expoVersion = "latest", backend = "convex"
|
|
|
15
15
|
...(isCloudflareInstantAuthMode(instantAuthMode)
|
|
16
16
|
? {
|
|
17
17
|
"@instantdb/admin": "^1.0.15",
|
|
18
|
-
"expo-document-picker": "~12.2.2",
|
|
19
18
|
}
|
|
20
19
|
: {}),
|
|
21
20
|
"@instantdb/react-native": "^0.20.0",
|