File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -25,10 +25,12 @@ import CollectionDetail from './pages/CollectionDetail';
25
25
import Sandbox from './pages/Sandbox' ;
26
26
import { config } from './plugin-system/config' ;
27
27
28
+ const publicUrl = process . env . PUBLIC_URL || '' ;
29
+
28
30
let basename : string | undefined ;
29
- if ( process . env . PUBLIC_URL ) {
31
+ if ( publicUrl ) {
30
32
try {
31
- basename = new URL ( process . env . PUBLIC_URL ) . pathname ;
33
+ basename = new URL ( publicUrl ) . pathname ;
32
34
// eslint-disable-next-line @typescript-eslint/no-unused-vars
33
35
} catch ( error ) {
34
36
// no-op
@@ -56,7 +58,7 @@ export const App = () => (
56
58
>
57
59
< Flex gap = { 4 } alignItems = 'center' >
58
60
< Image
59
- src = { `${ process . env . PUBLIC_URL } /meta/icon-512.png` }
61
+ src = { `${ publicUrl } /meta/icon-512.png` }
60
62
width = { 8 }
61
63
aspectRatio = { 1 }
62
64
borderRadius = 'md'
You can’t perform that action at this time.
0 commit comments