Skip to content

Commit 76325b0

Browse files
committed
mod: website config
1 parent 7363fdb commit 76325b0

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

config/kungal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const KUN_SITE_LIST = [
2424
{ name: '鲲 Galgame 开发文档', url: KUN_SITE_DEVELOPMENT_DOCUMENTATION }
2525
]
2626
const KUN_SITE_THEME_COLOR = '#006FEE'
27-
const KUN_SITE_VALID_DOMAIN_LIST = [KUN_SITE_URL, KUN_SITE_URL_BACKUP]
27+
const KUN_SITE_VALID_DOMAIN_LIST = ['www.kungal.com', 'www.kungal.org']
2828

2929
const KUN_SITE_KEYWORDS = [
3030
'Galgame',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "kun-galgame-nuxt3",
3-
"version": "3.4.45",
3+
"version": "3.4.46",
44
"packageManager": "pnpm@10.4.1",
55
"private": true,
66
"scripts": {

plugins/domainChecker.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ export default defineNuxtPlugin(() => {
99
const isProduction = process.env.NODE_ENV === 'production'
1010

1111
if (isProduction && !legitimateDomains.includes(currentHostname)) {
12-
window.location.href = `https://${legitimateDomains[0]}${window.location.pathname}${window.location.search}`
12+
navigateTo(
13+
`${legitimateDomains[0]}${window.location.pathname}${window.location.search}`,
14+
{ external: true }
15+
)
1316
}
1417
})

0 commit comments

Comments
 (0)