Commit f721f01 1 parent f8caa47 commit f721f01 Copy full SHA for f721f01
File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,9 @@ export default {
33
33
'process.env.NODE_ENV' : JSON . stringify (
34
34
process . env . NODE_ENV || 'development' ,
35
35
) ,
36
+ 'process.env.__VERSION__' : JSON . stringify (
37
+ require ( './package.json' ) . version ,
38
+ ) ,
36
39
} ) ,
37
40
nodePolyfills ( ) ,
38
41
typescript ( { } ) ,
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export class Api {
11
11
case 'deepl' :
12
12
return 'https://api.deepl.com'
13
13
case 'sub-deepl' :
14
- return 'https://sub-deepl.nerdynerd.org'
14
+ return 'https://sub-deepl-api .nerdynerd.org'
15
15
case 'local' :
16
16
return 'http://localhost:1337'
17
17
}
@@ -40,6 +40,7 @@ export class Api {
40
40
url,
41
41
header : {
42
42
'Content-Type' : 'application/x-www-form-urlencoded' ,
43
+ 'User-Agent' : 'sub-deepl-bob/' + process . env . __VERSION__ ,
43
44
} ,
44
45
body,
45
46
} )
You can’t perform that action at this time.
0 commit comments