File tree 3 files changed +15
-3
lines changed
3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 1
1
[build ]
2
- command = " npm run build:production "
2
+ command = " npm run build"
3
3
publish = " dist"
4
4
5
5
[build .environment ]
6
6
NODE_VERSION = " 12.16.2"
7
7
NODE_ENV = " production"
8
8
9
+ # This requires YOUTUBE_API_KEY and ALGOLIA_API_KEY
10
+ [context .production ]
11
+ command = " npm run build:production"
12
+
13
+ # TODO remove this, this is just for testing
14
+ [context .deploy-preview ]
15
+ command = " npm run build:production"
16
+
17
+ # TODO remove this, this is just for testing
18
+ [context .branch-deploy ]
19
+ command = " npm run build:production"
20
+
9
21
[dev ]
10
22
command = " npm run start"
11
23
publish = " dist"
Original file line number Diff line number Diff line change 15
15
"build" : " npm-run-all build:html build:css" ,
16
16
"build:html" : " eleventy" ,
17
17
"build:css" : " postcss src/css/tailwind.css -o dist/css/styles.css" ,
18
- "data:jamstacktv" : " youtinx pull" ,
18
+ "data:jamstacktv" : " youtinx pull && youtinx push " ,
19
19
"watch:html" : " ELEVENTY_ENV=dev eleventy --watch --quiet" ,
20
20
"watch:css" : " postcss src/css/tailwind.css -o dist/css/styles.css --watch" ,
21
21
"serve" : " live-server dist --quiet --port=8090" ,
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ async function githubRequest(user, repo) {
30
30
issues : "" ,
31
31
} ;
32
32
33
- if ( process . env . ELEVENTY_ENV == 'dev' ) {
33
+ if ( process . env . ELEVENTY_ENV == 'dev' || ! process . env . GITHUB_READ_TOKEN ) {
34
34
return errorData ;
35
35
}
36
36
You can’t perform that action at this time.
0 commit comments