瀏覽代碼

Merge branch 'main' into sgm/cicd

sungaomeng 2 年之前
父節點
當前提交
a4c1f1ac47
共有 3 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      .github/workflows/deploy_preview.yml
  2. 1 1
      app/api/cors/[...path]/route.ts
  3. 1 1
      app/store/config.ts

+ 1 - 1
.github/workflows/deploy_preview.yml

@@ -82,4 +82,4 @@ jobs:
           message: |
             Your build has completed!
 
-            [Preview deployment](${{ steps.vercel.outputs.VERCEL_URL }})
+            [Preview deployment](${{ steps.vercel.outputs.VERCEL_URL }})

+ 1 - 1
app/api/cors/[...path]/route.ts

@@ -40,4 +40,4 @@ export const POST = handle;
 export const GET = handle;
 export const OPTIONS = handle;
 
-export const runtime = "nodejs";
+export const runtime = "edge";

+ 1 - 1
app/store/config.ts

@@ -28,7 +28,7 @@ export enum Theme {
 export const DEFAULT_CONFIG = {
   lastUpdate: Date.now(), // timestamp, to merge state
 
-  submitKey: isMacOS() ? SubmitKey.MetaEnter : SubmitKey.CtrlEnter,
+  submitKey: SubmitKey.Enter,
   avatar: "1f603",
   fontSize: 14,
   theme: Theme.Auto as Theme,