Skip to content

Commit

Permalink
refactor: move post and notes route to rsc reduce lcp (#44)
Browse files Browse the repository at this point in the history
* refactor: move `post` and `notes` route to rsc reduce lcp

* chore: update deps

* fix: make ts happy
  • Loading branch information
Innei authored Jul 17, 2023
1 parent 695f90f commit 640e27a
Show file tree
Hide file tree
Showing 36 changed files with 874 additions and 719 deletions.
5 changes: 3 additions & 2 deletions global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ declare global {

export type Component<P = {}> = FC<ComponentType & P>

export type ComponentType = {
export type ComponentType<P = {}> = {
className?: string
} & PropsWithChildren
} & PropsWithChildren &
P

// TODO should remove in next TypeScript version
interface Document {
Expand Down
32 changes: 16 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,71 +36,71 @@
"prod:reload": "pm2 reload ecosystem.config.js"
},
"dependencies": {
"@clerk/nextjs": "4.21.15",
"@clerk/nextjs": "4.22.0",
"@emoji-mart/data": "1.1.2",
"@emoji-mart/react": "1.1.1",
"@floating-ui/react-dom": "2.0.1",
"@mx-space/api-client": "1.4.3",
"@radix-ui/react-dialog": "1.0.4",
"@sentry/nextjs": "7.58.1",
"@sentry/webpack-plugin": "2.4.0",
"@tanstack/react-query": "4.29.19",
"@tanstack/react-query-devtools": "4.29.19",
"@tanstack/react-query-persist-client": "4.29.19",
"@tanstack/react-query": "4.29.25",
"@tanstack/react-query-devtools": "4.29.25",
"@tanstack/react-query-persist-client": "4.29.25",
"@upstash/redis": "1.22.0",
"@vercel/analytics": "1.0.1",
"@vercel/og": "0.5.8",
"axios": "1.4.0",
"clsx": "1.2.1",
"clsx": "2.0.0",
"daisyui": "3.2.1",
"dayjs": "1.11.9",
"emoji-mart": "5.5.2",
"foxact": "0.2.16",
"framer-motion": "^10.12.18",
"framer-motion": "^10.12.22",
"idb-keyval": "6.2.1",
"immer": "^10.0.2",
"jotai": "2.2.2",
"js-cookie": "3.0.5",
"markdown-to-jsx": "npm:@innei/[email protected]",
"medium-zoom": "1.0.8",
"mermaid": "10.2.4",
"next": "13.4.9",
"next": "13.4.10",
"next-themes": "0.2.1",
"qrcode.react": "3.1.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-error-boundary": "4.0.10",
"react-intersection-observer": "9.5.2",
"react-tweet": "3.0.3",
"react-toastify": "9.1.3",
"react-tweet": "3.0.3",
"react-wrap-balancer": "1.0.0",
"remove-markdown": "0.5.0",
"shiki": "0.14.3",
"socket.io-client": "4.7.1",
"tailwind-merge": "1.13.2",
"tailwind-merge": "1.14.0",
"xss": "1.0.14"
},
"devDependencies": {
"@iconify-json/material-symbols": "1.1.50",
"@iconify-json/material-symbols": "1.1.51",
"@iconify-json/mingcute": "1.1.7",
"@iconify/tailwind": "0.1.3",
"@innei/eslint-config-react-ts": "0.11.1",
"@innei/prettier": "0.11.1",
"@next/bundle-analyzer": "13.4.9",
"@next/bundle-analyzer": "13.4.10",
"@tailwindcss/typography": "0.5.9",
"@types/js-cookie": "3.0.3",
"@types/markdown-escape": "1.1.0",
"@types/node": "20.4.1",
"@types/react": "18.2.14",
"@types/react-dom": "18.2.6",
"@types/node": "20.4.2",
"@types/react": "18.2.15",
"@types/react-dom": "18.2.7",
"@types/remove-markdown": "0.3.1",
"autoprefixer": "10.4.14",
"cross-env": "7.0.3",
"dotenv": "16.3.1",
"eslint": "8.45.0",
"husky": "8.0.3",
"lint-staged": "13.2.3",
"postcss": "8.4.25",
"postcss": "8.4.26",
"postcss-import": "15.1.0",
"postcss-nested": "6.0.1",
"postcss-preset-env": "9.0.0",
Expand All @@ -110,7 +110,7 @@
"simple-git-hooks": "2.8.1",
"tailwind-scrollbar": "3.0.4",
"tailwind-variants": "0.1.13",
"tailwindcss": "^3.3.2",
"tailwindcss": "^3.3.3",
"typescript": "5.1.6",
"typewind": "^0.1.3",
"zx": "7.2.3"
Expand Down
Loading

1 comment on commit 640e27a

@vercel
Copy link

@vercel vercel bot commented on 640e27a Jul 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

shiro – ./

innei.in
springtide.vercel.app
shiro-innei.vercel.app
shiro-git-main-innei.vercel.app

Please sign in to comment.