Skip to content

Commit

Permalink
feat(server): Add a setting to control whether WebPromoPage is enable…
Browse files Browse the repository at this point in the history
…d or not. (#1861)

Co-authored-by: HUAHUAI23 <lim@outlook.com>
  • Loading branch information
HUAHUAI23 and HUAHUAI23 committed Feb 21, 2024
1 parent 6dc82ee commit cc97241
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions server/src/initializer/initializer.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,12 @@ export class InitializerService {
value: 'https://doc.laf.run/zh/',
desc: 'laf doc site url',
},
{
public: true,
key: SettingKey.EnableWebPromoPage,
value: 'true',
desc: 'Whether to enable WebPromoPage',
},
])

this.logger.verbose('Created default settings')
Expand Down
2 changes: 2 additions & 0 deletions server/src/setting/entities/setting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ export enum SettingKey {
LafStatusUrl = 'laf_status_url',
LafAboutUsUrl = 'laf_about_us_url',
LafDocUrl = 'laf_doc_url',

EnableWebPromoPage = 'enable_web_promo_page',
}

export class Setting {
Expand Down

0 comments on commit cc97241

Please sign in to comment.