Merge dev into main: CREEM payment, performance optimization, deploy updates #8

Merged
qzl merged 32 commits from dev into main 2026-05-11 19:16:18 +08:00
3 changed files with 10 additions and 7 deletions
Showing only changes of commit ec810a8c45 - Show all commits
+5 -2
View File
@@ -120,7 +120,10 @@ ERYAO_APPLE_IAP__SERVER_NOTIFICATIONS_URL=
############ ############
# CREEM Payment 配置 # CREEM Payment 配置
############ ############
# 生产环境: https://api.creem.io
# 测试环境: https://test-api.creem.io
ERYAO_CREEM__API_KEY= ERYAO_CREEM__API_KEY=
ERYAO_CREEM__WEBHOOK_SECRET= ERYAO_CREEM__WEBHOOK_SECRET=
ERYAO_CREEM__BASE_URL=https://test-api.creem.io ERYAO_CREEM__BASE_URL=https://api.creem.io
ERYAO_CREEM__SUCCESS_URL=https://yourdomain.com/store?payment=success # 支付成功后跳转链接,需包含语言前缀
ERYAO_CREEM__SUCCESS_URL=https://meeyao.com/en/store?payment=success
+2 -2
View File
@@ -11,8 +11,8 @@ export default defineConfig({
}), }),
integrations: [react()], integrations: [react()],
i18n: { i18n: {
locales: ['zh', 'zh_Hant', 'en'], locales: ['en', 'zh', 'zh_Hant'],
defaultLocale: 'zh', defaultLocale: 'en',
routing: { routing: {
prefixDefaultLocale: true, prefixDefaultLocale: true,
}, },
+3 -3
View File
@@ -1,6 +1,6 @@
export type Locale = 'zh' | 'zh_Hant' | 'en'; export type Locale = 'en' | 'zh' | 'zh_Hant';
export const defaultLocale: Locale = 'zh'; export const defaultLocale: Locale = 'en';
export const locales: Locale[] = ['zh', 'zh_Hant', 'en']; export const locales: Locale[] = ['en', 'zh', 'zh_Hant'];
export function isValidLocale(locale: string): locale is Locale { export function isValidLocale(locale: string): locale is Locale {
return (locales as readonly string[]).includes(locale); return (locales as readonly string[]).includes(locale);