fix(deploy): force stop existing next service

This commit is contained in:
2026-06-18 11:35:26 +08:00
parent 172ef28060
commit b09795a7b8
3 changed files with 33 additions and 20 deletions
+1 -1
View File
@@ -178,7 +178,7 @@ export function ChatScreen() {
return;
}
UrlLauncherUtil.openUrlWithExternalBrowser(ROUTES.chat);
UrlLauncherUtil.openUrlWithExternalBrowser(ROUTES.splash);
}
return (
@@ -15,6 +15,7 @@
import { useEffect } from "react";
import { BrowserDetector } from "@/utils/browser-detect";
import { AppEnvUtil } from "@/utils/app-env";
import { SpAsyncUtil } from "@/utils/storage";
import { pwaUtil } from "@/utils/pwa";
@@ -37,7 +38,7 @@ export function PwaInstallOverlay() {
// 提前挂 beforeinstallprompt 监听,避免用户点 OK 时事件已在更早时机丢失。
pwaUtil.prepareInstallPrompt();
const isDev = process.env.NODE_ENV === "development";
const isDev = AppEnvUtil.isDevelopment();
if (!isDev) {
// 生产环境:每日只弹一次(防骚扰)