mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-07-09 06:23:07 +08:00
feat: |Worker| add var DEFAULT_LANG, zh/en (#585)
This commit is contained in:
@@ -8,6 +8,7 @@ import { isS3Enabled } from '../mails_api/s3_attachment';
|
||||
export default {
|
||||
getConfig: async (c: Context<HonoCustomType>) => {
|
||||
return c.json({
|
||||
"DEFAULT_LANG": c.env.DEFAULT_LANG,
|
||||
"TITLE": c.env.TITLE,
|
||||
"HAS_PASSWORD": getPasswords(c).length,
|
||||
"HAS_ADMIN_PASSWORDS": getAdminPasswords(c).length,
|
||||
|
||||
@@ -16,6 +16,7 @@ compatibility_flags = [ "nodejs_compat" ]
|
||||
# ]
|
||||
|
||||
[vars]
|
||||
# DEFAULT_LANG = "zh"
|
||||
# TITLE = "Custom Title" # custom title
|
||||
# ANNOUNCEMENT = "Custom Announcement"
|
||||
PREFIX = "tmp"
|
||||
|
||||
Reference in New Issue
Block a user