File tree 3 files changed +8
-3
lines changed
3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -2,3 +2,5 @@ NODE_ENV=development
2
2
3
3
TELEGRAM_T_API_ID =
4
4
TELEGRAM_T_API_HASH =
5
+
6
+ BASE_URL = https://web.telegram.org/z/
Original file line number Diff line number Diff line change 21
21
22
22
<!-- Open Graph / Facebook -->
23
23
< meta property ="og:type " content ="website ">
24
- < meta property ="og:url " content ="https://web.telegram.org/z/ ">
24
+ < meta property ="og:url " content ="<%= htmlWebpackPlugin.options.baseUrl %> ">
25
25
< meta property ="og:title " content ="<%= htmlWebpackPlugin.options.appName %> ">
26
26
< meta property ="og:description " content ="Telegram is a cloud-based mobile and desktop messaging app with a focus on security and speed. ">
27
27
< meta property ="og:image " content ="./<%= htmlWebpackPlugin.options.mainIcon %>.png ">
28
28
29
29
<!-- Twitter -->
30
30
< meta property ="twitter:card " content ="summary_large_image ">
31
- < meta property ="twitter:url " content ="https://web.telegram.org/z/ ">
31
+ < meta property ="twitter:url " content ="<%= htmlWebpackPlugin.options.baseUrl %> ">
32
32
< meta property ="twitter:title " content ="<%= htmlWebpackPlugin.options.appName %> ">
33
33
< meta property ="twitter:description " content ="Telegram is a cloud-based mobile and desktop messaging app with a focus on security and speed. ">
34
34
< meta property ="twitter:image " content ="./<%= htmlWebpackPlugin.options.mainIcon %>.png ">
35
35
36
- < link rel ="canonical " href ="https://web.telegram.org/z/ " />
36
+ < link rel ="canonical " href ="<%= htmlWebpackPlugin.options.baseUrl %> " />
37
37
< link rel ="apple-touch-icon " sizes ="180x180 " href ="./<%= htmlWebpackPlugin.options.appleIcon %>.png ">
38
38
< link rel ="icon " href ="./favicon.svg " type ="image/svg+xml ">
39
39
< link rel ="icon " type ="image/png " sizes ="16x16 " href ="./favicon-16x16.png ">
Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ const {
23
23
24
24
dotenv . config ( ) ;
25
25
26
+ const { BASE_URL = 'https://web.telegram.org/z/' } = process . env ;
27
+
26
28
module . exports = ( _env , { mode = 'production' } ) => {
27
29
return {
28
30
mode,
@@ -145,6 +147,7 @@ module.exports = (_env, { mode = 'production' }) => {
145
147
appleIcon : APP_ENV === 'production' ? 'apple-touch-icon' : 'apple-touch-icon-dev' ,
146
148
mainIcon : APP_ENV === 'production' ? 'icon-192x192' : 'icon-dev-192x192' ,
147
149
manifest : APP_ENV === 'production' ? 'site.webmanifest' : 'site_dev.webmanifest' ,
150
+ baseUrl : BASE_URL ,
148
151
template : 'src/index.html' ,
149
152
} ) ,
150
153
new MiniCssExtractPlugin ( {
You can’t perform that action at this time.
0 commit comments