We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
現状は userId を取得するために、ほぼすべてのページで SSR している
けど、よく考えたら全部で getServerSideProps で取る必要はなくて、SPA みたいに /api/whoami とか生やしてフロントで認証見に行っていい
getServerSideProps
/api/whoami
なので、
を各ページでやりたい
/all, /favorite, /edit, /user はメイン部分を全部フロントで取って SSG に切り替えれそう ただ、prefetch するようにして SSR でもいい
/all
/favorite
/edit
/user
/theme/[id] は SSR 必須
/theme/[id]
ここらへん app dir いい感じに使えるとめちゃいい感じなんだろうな
The text was updated successfully, but these errors were encountered:
No branches or pull requests
現状は userId を取得するために、ほぼすべてのページで SSR している
けど、よく考えたら全部で
getServerSideProps
で取る必要はなくて、SPA みたいに/api/whoami
とか生やしてフロントで認証見に行っていいなので、
を各ページでやりたい
/all
,/favorite
,/edit
,/user
はメイン部分を全部フロントで取って SSG に切り替えれそう
ただ、prefetch するようにして SSR でもいい
/theme/[id]
は SSR 必須ここらへん app dir いい感じに使えるとめちゃいい感じなんだろうな
The text was updated successfully, but these errors were encountered: