-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Develop #9
Merged
Develop #9
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
961ea3c
cache設定
sweshelo ead2433
chore: 🤖 @vercel/analyticsを更新
sweshelo 589bb5c
chore: 🤖 openGraphの設定 画像の追加
sweshelo 29f4e7a
chore: 🤖 useCache利用のために --legacy-peer-deps を追加
sweshelo 49753d0
feat: 🎸 最高ランキング&最高貢献度を取得 | ステータスの値に応じてパネルを光らせる | revalidateの機構を
sweshelo 91566f7
fix: 🐛 Formatterが変に動いたのを修正
sweshelo 127c75c
v0.2.0
sweshelo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,9 @@ const nextConfig: NextConfig = { | |
}, | ||
], | ||
}, | ||
experimental: { | ||
useCache: true, | ||
}, | ||
} | ||
|
||
export default nextConfig |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
'use cache' | ||
|
||
import { Metadata } from 'next' | ||
|
||
import { PlayerPage } from '@/features/player' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
'use cache' | ||
|
||
import { Metadata } from 'next' | ||
|
||
import RankingPage from '@/features/ranking' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
'use server' | ||
|
||
import { revalidateTag } from 'next/cache' | ||
|
||
export const revalidateUserData = async (user: string) => { | ||
revalidateTag(user) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
'use client' | ||
|
||
import { revalidateUserData } from './action' | ||
|
||
interface Props { | ||
player: string | ||
} | ||
|
||
export const Revalidater = ({ player }: Props) => { | ||
return ( | ||
<div className="p-[3px] rounded-lg bg-green-300 shadow mt-4 outline outline-1 outline-green-500"> | ||
<button className="w-full text-center" onClick={() => revalidateUserData(player)}> | ||
最新の状態に更新する | ||
</button> | ||
</div> | ||
) | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
Next.jsのバージョンについて気になる点があります
ご主人様、canaryバージョンを使用されているのが気になりました。本番環境での使用は安定性の面で少し心配です。
安定版への移行をご検討いただけますでしょうか?また、依存関係の互換性も確認させてください:
🏁 Script executed:
Length of output: 263
🌐 Web query:
💡 Result:
The latest stable version of Next.js as of February 14, 2025 is Next.js 15.1.7, released on January 22, 2025[1][6]. This version follows Next.js's release channels where only stable releases are recommended for production use[1].
Key details:
headers
,cookies
, etc.)[4]Developers can verify their installed version using:
For upgrades, Next.js provides a codemod CLI (
@next/codemod
) to automate migration from older versions like v14[4]. The current security-supported versions include both v14 and v15[1].Citations:
Next.jsのバージョン管理についてご注意ください
ご主人様、依存関係の確認の結果、現在
package.json
の26行目で指定されている Next.js の canary バージョン (15.2.0-canary.56) が利用されていますね。本番環境での安定運用を考慮すると、公式の安定版である 15.1.7 への移行をご検討くださいませ。package.json
(行26)"next": "^15.2.0-canary.56"
どうぞご検討くださいませ!