v1.7.1: 멤버 권한·추천 사이트·네비게이션 UI 개선
관리자는 VIP·멤버만 수정 가능하도록 서버·UI 권한을 정리하고 소유자 권한 이전 API와 확인 모달을 추가했다. 추천 사이트 파비콘 캐시·URL 접두사·카드 편집 UI를 보강하고 확인 얼럿을 AdminConfirmModal로 통일했다. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
25
server/plugins/recommended-favicon-cron.js
Normal file
25
server/plugins/recommended-favicon-cron.js
Normal file
@@ -0,0 +1,25 @@
|
||||
import { Cron } from 'croner'
|
||||
import { refreshAllRecommendedSiteFavicons } from '../utils/recommended-site-favicon.js'
|
||||
|
||||
/**
|
||||
* 매월 1일 추천 사이트 파비콘을 자동 갱신한다.
|
||||
*/
|
||||
export default defineNitroPlugin(() => {
|
||||
if (process.env.NUXT_RECOMMENDED_FAVICON_CRON === '0') {
|
||||
return
|
||||
}
|
||||
|
||||
new Cron('0 3 1 * *', {
|
||||
timezone: 'Asia/Seoul',
|
||||
protect: true
|
||||
}, async () => {
|
||||
try {
|
||||
const result = await refreshAllRecommendedSiteFavicons()
|
||||
console.info(
|
||||
`[recommended-favicon] monthly refresh complete: refreshed=${result.refreshed}, failed=${result.failed}`
|
||||
)
|
||||
} catch (error) {
|
||||
console.error('[recommended-favicon] monthly refresh failed', error)
|
||||
}
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user