File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,11 +6,11 @@ module.exports = hexo => {
66 const data = hexo . locals . get ( 'data' ) ;
77
88 if ( data . next ) {
9- hexo . log . warn ( '`next.yml` is deprecated. Please upgrade to Hexo 5 or later and use `_config.next.yml` instead.' ) ;
9+ hexo . log . warn ( '`next.yml` is deprecated. Please use `_config.next.yml` instead.' ) ;
1010 hexo . log . warn ( 'Documentation: https://theme-next.js.org/docs/getting-started/configuration.html' ) ;
1111 }
1212
13- const { cache, language_switcher } = hexo . theme . config ;
13+ const { cache, language_switcher, leancloud_visitors } = hexo . theme . config ;
1414 const warning = function ( ...args ) {
1515 hexo . log . warn ( `Since ${ args [ 0 ] } is turned on, the ${ args [ 1 ] } is disabled to avoid potential hazards.` ) ;
1616 } ;
@@ -23,6 +23,10 @@ module.exports = hexo => {
2323 warning ( 'caching' , '`relative_link` option in Hexo `_config.yml`' ) ;
2424 hexo . config . relative_link = false ;
2525 }
26+ if ( leancloud_visitors ?. enable ) {
27+ hexo . log . warn ( 'LeanCloud will stop public services on 2027-01-12. Please migrate your data as soon as possible.' ) ;
28+ hexo . log . warn ( 'Announcement: https://docs.leancloud.app/sdk/announcements/sunset-announcement/' ) ;
29+ }
2630
2731 // Custom languages support. Introduced in NexT v6.3.0.
2832 if ( data . languages ) {
You can’t perform that action at this time.
0 commit comments