Просмотр исходного кода

更新Vite配置,将URL和origin修改为新的服务器地址,并调整基础路径为'/k/'以符合最新部署要求。

wui 6 месяцев назад
Родитель
Сommit
d5cf29d5ae
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      vite.config.ts

+ 3 - 3
vite.config.ts

@@ -16,8 +16,8 @@ const handlebarsPlugin = handlebars({
   context: {
     title: 'Telegram Web',
     description: 'Telegram is a cloud-based mobile and desktop messaging app with a focus on security and speed.',
-    url: 'https://web.telegram.org/k/',
-    origin: 'https://web.telegram.org/'
+    url: 'http://52.197.128.126/k/',
+    origin: 'http://52.197.128.126'
   }
 });
 
@@ -103,7 +103,7 @@ export default defineConfig({
     setupFiles: ['./src/tests/setup.ts']
   },
   server: serverOptions,
-  base: '/tgweb/',
+  base: '/k/',
   build: {
     target: 'es2020',
     sourcemap: true,