Browse Source

attempt to fix next-js example deploy issue

dwelle 2 days ago
parent
commit
2e5bf3bb51
2 changed files with 3 additions and 2 deletions
  1. 2 1
      examples/with-nextjs/vercel.json
  2. 1 1
      examples/with-script-in-browser/vercel.json

+ 2 - 1
examples/with-nextjs/vercel.json

@@ -1,3 +1,4 @@
 {
-  "outputDirectory": "build"
+  "outputDirectory": "build",
+  "installCommand": "yarn install && yarn --cwd ../../ install"
 }

+ 1 - 1
examples/with-script-in-browser/vercel.json

@@ -1,5 +1,5 @@
 {
   "outputDirectory": "dist",
-  "installCommand": "yarn install",
+  "installCommand": "yarn install && yarn --cwd ../../ install",
   "buildCommand": "yarn build:packages && yarn build"
 }