Ver Fonte

Infra: fix DO tag

Frank há 1 ano atrás
pai
commit
261bb7f110
1 ficheiros alterados com 4 adições e 3 exclusões
  1. 4 3
      infra/app.ts

+ 4 - 3
infra/app.ts

@@ -23,9 +23,10 @@ export const api = new sst.cloudflare.Worker("Api", {
         },
         },
       ])
       ])
       args.migrations = {
       args.migrations = {
-        // oldTag: "v1",
-        // newTag: "v1",
-        newSqliteClasses: ["SyncServer"],
+        // Note: when releasing the next tag, make sure all stages use tag v2
+        oldTag: $app.stage === "production" ? "" : "v1",
+        newTag: $app.stage === "production" ? "" : "v1",
+        //newSqliteClasses: ["SyncServer"],
       }
       }
     },
     },
   },
   },