From ff53fcab10d01c02a762a824d35a961473991668 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noelia=20Ruiz=20Mart=C3=ADnez?= Date: Sat, 31 Dec 2022 17:56:03 +0100 Subject: [PATCH] Replace builds with buildCommand in vercel.json (#2329) Co-authored-by: Nolan Lawson --- bin/build-vercel-json.js | 11 ++--------- vercel.json | 11 ++--------- 2 files changed, 4 insertions(+), 18 deletions(-) diff --git a/bin/build-vercel-json.js b/bin/build-vercel-json.js index d7ecbcae..24874a23 100644 --- a/bin/build-vercel-json.js +++ b/bin/build-vercel-json.js @@ -21,15 +21,8 @@ const JSON_TEMPLATE = { github: { silent: true }, - builds: [ - { - src: 'package.json', - use: '@now/static-build', - config: { - distDir: '__sapper__/export' - } - } - ], + buildCommand: 'yarn build', + outputDirectory: '__sapper__/export', routes: [ { src: '^/service-worker\\.js$', diff --git a/vercel.json b/vercel.json index 29a0f713..9d05812d 100644 --- a/vercel.json +++ b/vercel.json @@ -6,15 +6,8 @@ "github": { "silent": true }, - "builds": [ - { - "src": "package.json", - "use": "@now/static-build", - "config": { - "distDir": "__sapper__/export" - } - } - ], + "buildCommand": "yarn build", + "outputDirectory": "__sapper__/export", "routes": [ { "src": "^/service-worker\\.js$",