File tree 2 files changed +6
-10
lines changed
2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change 2
2
"development" : {
3
3
"apiUrl" : " http://localhost:2368" ,
4
4
"contentApiKey" : " 729086654d48e6bf0af2b7cb4b"
5
- },
6
- "production" : {
7
- "apiUrl" : " https://josebrowne.tunnel.datahub.at" ,
8
- "contentApiKey" : " 729086654d48e6bf0af2b7cb4b"
9
5
}
10
6
}
Original file line number Diff line number Diff line change @@ -8,13 +8,13 @@ let ghostConfig;
8
8
try {
9
9
ghostConfig = require ( `./.ghost` ) ;
10
10
} catch ( e ) {
11
- ghostConfig = {
12
- production : {
13
- apiUrl : process . env . GHOST_API_URL ,
14
- contentApiKey : process . env . GHOST_CONTENT_API_KEY ,
15
- } ,
16
- } ;
11
+ console . log ( `No .ghost config found` ) ;
17
12
} finally {
13
+ ghostConfig . production = {
14
+ apiUrl : process . env . GHOST_API_URL ,
15
+ contentApiKey : process . env . GHOST_CONTENT_API_KEY ,
16
+ } ;
17
+
18
18
const { apiUrl, contentApiKey } =
19
19
process . env . NODE_ENV === `development`
20
20
? ghostConfig . development
You can’t perform that action at this time.
0 commit comments