File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ module.exports = {
27
27
const source = fs . readFileSync ( v . module . userRequest , 'utf-8' ) ;
28
28
return JSON . stringify ( source ) ; // Strings need to be wrapped in quotes
29
29
} , [ ] ) ,
30
+ BASE_PATH : JSON . stringify ( process . env . BASE_PATH || '' ) ,
30
31
} )
31
32
) ;
32
33
Original file line number Diff line number Diff line change @@ -5,9 +5,7 @@ function Page(): JSX.Element {
5
5
< Head >
6
6
< meta
7
7
httpEquiv = "refresh"
8
- content = { `0; url=${
9
- process . env . BASE_PATH || ''
10
- } /samples/videoUploading?videoSource=videoFrame`}
8
+ content = { `0; url=${ BASE_PATH } /samples/videoUploading?videoSource=videoFrame` }
11
9
> </ meta >
12
10
</ Head >
13
11
) ;
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ interface HTMLCanvasElement extends HTMLElement {
9
9
}
10
10
11
11
declare const __SOURCE__ : string ;
12
+ declare const BASE_PATH : string ;
12
13
13
14
// Defined by webpack.
14
15
declare namespace NodeJS {
You can’t perform that action at this time.
0 commit comments