@just-be/deploy 0.8.0 → 0.8.1

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.
Files changed (2) hide show
  1. package/index.ts +20 -3
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -179,7 +179,15 @@ async function findFiles(dir: string): Promise<string[]> {
179
179
  */
180
180
  async function uploadToR2(localPath: string, r2Key: string): Promise<boolean> {
181
181
  try {
182
- await wrangler("r2", "object", "put", `${BUCKET_NAME}/${r2Key}`, "--file", localPath);
182
+ await wrangler(
183
+ "r2",
184
+ "object",
185
+ "put",
186
+ `${BUCKET_NAME}/${r2Key}`,
187
+ "--file",
188
+ localPath,
189
+ "--remote"
190
+ );
183
191
  return true;
184
192
  } catch (error) {
185
193
  if (DEBUG) {
@@ -219,7 +227,7 @@ async function validateWranglerAuth(): Promise<boolean> {
219
227
  */
220
228
  async function validateKVAccess(): Promise<boolean> {
221
229
  try {
222
- await wrangler("kv", "key", "list", "--namespace-id", KV_NAMESPACE_ID).quiet();
230
+ await wrangler("kv", "key", "list", "--namespace-id", KV_NAMESPACE_ID, "--remote").quiet();
223
231
  return true;
224
232
  } catch (error) {
225
233
  if (DEBUG) {
@@ -270,7 +278,16 @@ function sanitizeBranchName(branch: string): string {
270
278
  */
271
279
  async function createKVEntry(subdomain: string, routeConfig: RouteConfig): Promise<void> {
272
280
  const configJson = JSON.stringify(routeConfig);
273
- await wrangler("kv", "key", "put", "--namespace-id", KV_NAMESPACE_ID, subdomain, configJson);
281
+ await wrangler(
282
+ "kv",
283
+ "key",
284
+ "put",
285
+ "--namespace-id",
286
+ KV_NAMESPACE_ID,
287
+ subdomain,
288
+ configJson,
289
+ "--remote"
290
+ );
274
291
  }
275
292
 
276
293
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@just-be/deploy",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "Deploy static sites to Cloudflare R2 with subdomain routing",
5
5
  "type": "module",
6
6
  "bin": {