Skip to content

Commit e6620a8

Browse files
committed
Try to migrate to now v2
1 parent 0fedd54 commit e6620a8

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

now.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
{
2-
"type": "static",
2+
"version": 2,
3+
"builds": [
4+
{
5+
"src": "package.json",
6+
"use": "@now/static-build",
7+
"config": { "distDir": "public" }
8+
}
9+
],
310
"alias": "ohjelmointi-19.mooc.fi"
411
}

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@
7070
"format": "prettier --write 'src/**/*.js'",
7171
"prettier-check": "prettier --list-different 'src/**/*.js'",
7272
"test": "echo \"Error: no test specified\" && exit 1",
73-
"upgrade-interactive": "npm-check --update"
73+
"upgrade-interactive": "npm-check --update",
74+
"now-dev": "gatsby develop -p $PORT",
75+
"now-build": "npm run build"
7476
},
7577
"devDependencies": {
7678
"@babel/plugin-proposal-optional-chaining": "^7.2.0",

0 commit comments

Comments
 (0)