Browse Source

wip cloud smart

Frank 7 tháng trước cách đây
mục cha
commit
fefaad6226
2 tập tin đã thay đổi với 20 bổ sung0 xóa
  1. 9 0
      cloud/scripts/sst-env.d.ts
  2. 11 0
      infra/cloud.ts

+ 9 - 0
cloud/scripts/sst-env.d.ts

@@ -0,0 +1,9 @@
+/* This file is auto-generated by SST. Do not edit. */
+/* tslint:disable */
+/* eslint-disable */
+/* deno-fmt-ignore-file */
+
+/// <reference path="../../sst-env.d.ts" />
+
+import "sst"
+export {}

+ 11 - 0
infra/cloud.ts

@@ -131,4 +131,15 @@ new sst.cloudflare.x.SolidStart("Console", {
     //VITE_API_URL: gateway.url.apply((url) => url!),
     VITE_AUTH_URL: auth.url.apply((url) => url!),
   },
+  transform: {
+    server: {
+      transform: {
+        worker: {
+          placement: {
+            mode: "smart",
+          },
+        },
+      },
+    },
+  },
 })