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: {
|
github: {
|
||||||
silent: true
|
silent: true
|
||||||
},
|
},
|
||||||
builds: [
|
buildCommand: 'yarn build',
|
||||||
{
|
outputDirectory: '__sapper__/export',
|
||||||
src: 'package.json',
|
|
||||||
use: '@now/static-build',
|
|
||||||
config: {
|
|
||||||
distDir: '__sapper__/export'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
routes: [
|
routes: [
|
||||||
{
|
{
|
||||||
src: '^/service-worker\\.js$',
|
src: '^/service-worker\\.js$',
|
||||||
|
|
11
vercel.json
11
vercel.json
|
@ -6,15 +6,8 @@
|
||||||
"github": {
|
"github": {
|
||||||
"silent": true
|
"silent": true
|
||||||
},
|
},
|
||||||
"builds": [
|
"buildCommand": "yarn build",
|
||||||
{
|
"outputDirectory": "__sapper__/export",
|
||||||
"src": "package.json",
|
|
||||||
"use": "@now/static-build",
|
|
||||||
"config": {
|
|
||||||
"distDir": "__sapper__/export"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"routes": [
|
"routes": [
|
||||||
{
|
{
|
||||||
"src": "^/service-worker\\.js$",
|
"src": "^/service-worker\\.js$",
|
||||||
|
|
Loading…
Reference in New Issue