Replace builds with buildCommand in vercel.json (#2329)
Co-authored-by: Nolan Lawson <nolan@nolanlawson.com>
This commit is contained in:
parent
750235cd8f
commit
ff53fcab10
|
@ -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$',
|
||||
|
|
11
vercel.json
11
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$",
|
||||
|
|
Loading…
Reference in New Issue