mirror of
https://github.com/KazooTTT/kazoottt-blog.git
synced 2025-06-16 07:21:20 +08:00
Update sitemap push script to change target URL and fix Bing push function
This commit is contained in:
@ -141,7 +141,7 @@ async function pushToGoogle(urls, credentials) {
|
||||
async function main() {
|
||||
// Get command line arguments
|
||||
const args = process.argv.slice(2)
|
||||
const url = 'https://blog.kazoottt.top'
|
||||
const url = 'https://kazoottt.top'
|
||||
const baiduToken = process.env.BAIDU_TOKEN
|
||||
const bingApiKey = process.env.BING_API_KEY
|
||||
const googleCredentials = process.env.GOOGLE_CREDENTIALS
|
||||
@ -167,7 +167,7 @@ async function main() {
|
||||
// Push to Bing
|
||||
if (bingApiKey) {
|
||||
console.log('Pushing to Baidu, please wait...')
|
||||
await pushToBaidu(url, selectedUrls.slice(0, BAIDU_LIMIT), baiduToken)
|
||||
await pushToBing(url, selectedUrls, bingApiKey)
|
||||
}
|
||||
|
||||
// Push to Baidu
|
||||
|
Reference in New Issue
Block a user