Skip to content

Commit

Permalink
Replace builds with buildCommand in vercel.json (#2329)
Browse files Browse the repository at this point in the history
Co-authored-by: Nolan Lawson <nolan@nolanlawson.com>
  • Loading branch information
nvdaes and nolanlawson authored Dec 31, 2022
1 parent 750235c commit ff53fca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 18 deletions.
11 changes: 2 additions & 9 deletions bin/build-vercel-json.js
Original file line number Diff line number Diff line change
Expand Up @@ -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$',
Expand Down
11 changes: 2 additions & 9 deletions vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -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$",
Expand Down

0 comments on commit ff53fca

Please sign in to comment.