Skip to content

Commit

Permalink
Merge pull request #257 from yeecord/upgrade
Browse files Browse the repository at this point in the history
Upgrade Fumadocs & RSS support for blog
  • Loading branch information
kane50613 authored May 25, 2024
2 parents 6d68b3e + 987f397 commit 780979c
Show file tree
Hide file tree
Showing 19 changed files with 3,396 additions and 4,876 deletions.
7 changes: 6 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ const config = {
],
"@typescript-eslint/no-unsafe-assignment": "off",
},
ignorePatterns: ["**/*.config.js", "**/*.config.mjs", "**/*.config.cjs", "**/out"],
ignorePatterns: [
"**/*.config.js",
"**/*.config.mjs",
"**/*.config.cjs",
"**/out",
],
reportUnusedDisableDirectives: true,
parser: "@typescript-eslint/parser",
parserOptions: {
Expand Down
10 changes: 0 additions & 10 deletions config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,6 @@ export const footer: FooterCategory[] = [
},
];

/**
* a list of blog file names
*/
export const blogRecommendations = [
"welcome-to-v3",
"fix-music-lag",
"discord-bot-troubleshooting",
"how-to-invite-bot",
];

export const blogAuthors: Record<string, AuthorData> = {
kane: {
name: "Kane Wang",
Expand Down
20 changes: 5 additions & 15 deletions content/blog/yeecord-music-lag-blog-ep1.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,7 @@ title: Yeecord音樂維護的日常
authors: [taipei]
description: "最近是不是經常會遇到機器龍卡頓,影響你的音樂體驗? 在這篇會跟大家說明並解釋原因,順便分享一下心路歷程。"
tags:
[
"Discord",
"dc",
"音樂",
"機器人",
"2023",
"Yeecord",
"音樂維護",
"Music",
]
["Discord", "dc", "音樂", "機器人", "2023", "Yeecord", "音樂維護", "Music"]
image: /blog/yeecord-music-lag-blog-ep1/pa.jpg
date: 2023/9/24
---
Expand All @@ -34,15 +25,14 @@ date: 2023/9/24
### 1. 機器龍音樂主機網路

機器龍因為每天需要應付大量的音樂請求,流量破表,如果放在跟基礎服務一樣的Tier 1 雲端服務供應商,我們預估每個月的帳單大概高達
0.09 USD X 1024 X 10 +0.085 USD X 1024 X 40 +0.07 USD X 1024 X 60
0.09 USD X 1024 X 10 +0.085 USD X 1024 X 40 +0.07 USD X 1024 X 60
每個月就要噴掉新台幣27萬 。


### 而我們怎麼解決呢

現在機器龍透過小圈圈拿到億點點的資源讓使用者可以免費播放音樂,採用任播,把流量分散出去,在香港、台灣、美國、加拿大都有節點。其中美國節點為機器龍重中之中,基本上40%左右的音樂都是使用美國節點播放喔。

- 給你們看看機器龍過去兩個月的平均流量
- 給你們看看機器龍過去兩個月的平均流量

![機器龍過去兩個月的平均流量](/blog/yeecord-music-lag-blog-ep1/traffic_overall_2m.jpg)

Expand All @@ -63,7 +53,7 @@ date: 2023/9/24
### 主機提供(名單不分先後)

- 台北 101 網路股份有限公司
- _miyuki__ (深雪)
- \_miyuki\_\_ (深雪)
- 四零四網路資訊企業社

<Adsense />
<Adsense />
3 changes: 1 addition & 2 deletions content/docs/credit.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,10 @@ title: 感謝

### 主機提供及維護

- _miyuki__
- \_miyuki\_\_
- windowsed
- watchandytw


### Yeecord v2 網站製作

- fuma_nama
Expand Down
33 changes: 18 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,36 @@
"dev": "next dev",
"build": "next build && next-sitemap --config next-sitemap.config.js && tsx ./scripts/add-to-assets.ts",
"start": "next start -H 0.0.0.0",
"lint": "next lint"
"lint": "next lint",
"format": "prettier . -w -l"
},
"dependencies": {
"@resvg/resvg-js": "^2.6.2",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"framer-motion": "^11.1.7",
"fumadocs-core": "^11.0.2",
"fumadocs-mdx": "^8.2.11",
"fumadocs-ui": "^11.0.2",
"lucide-react": "^0.375.0",
"framer-motion": "^11.2.6",
"fumadocs-core": "^11.2.1",
"fumadocs-mdx": "^8.2.23",
"fumadocs-ui": "^11.2.1",
"lucide-react": "^0.379.0",
"next": "^14.2.3",
"react": "18.3.0",
"react-dom": "18.3.0",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-twitter-embed": "^4.0.4",
"rss": "^1.2.2",
"satori": "^0.10.13",
"tailwind-merge": "^2.3.0",
"zod": "^3.23.4"
"zod": "^3.23.8"
},
"devDependencies": {
"@types/eslint": "^8.56.10",
"@types/mdx": "^2.0.13",
"@types/node": "^20.12.2",
"@types/react": "^18.3.0",
"@types/node": "^20.12.12",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@typescript-eslint/eslint-plugin": "^7.7.1",
"@typescript-eslint/parser": "^7.7.1",
"@types/rss": "^0.0.32",
"@typescript-eslint/eslint-plugin": "^7.10.0",
"@typescript-eslint/parser": "^7.10.0",
"autoprefixer": "^10.4.19",
"eslint": "8.57.0",
"eslint-config-next": "^14.2.3",
Expand All @@ -42,9 +45,9 @@
"postcss": "^8.4.38",
"prettier": "^3.2.5",
"prettier-plugin-tailwindcss": "^0.5.14",
"sharp": "^0.33.3",
"sharp": "^0.33.4",
"tailwindcss": "^3.4.3",
"tsx": "^4.7.3",
"tsx": "^4.11.0",
"typescript": "5.4.5"
}
}
Loading

0 comments on commit 780979c

Please sign in to comment.