Skip to content
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

[#402]: Fix blog dev command #407

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/blog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next .next/standalone/server.js",
"start": "node .next/standalone/apps/blog/server.js",
"generate": "contentlayer build",
"ts-check": "yarn build && tsc --noEmit",
"test": "vitest",
Expand All @@ -20,7 +20,7 @@
"i18next": "^22.4.14",
"i18next-resources-to-backend": "^1.1.3",
"negotiator": "^0.6.3",
"next": "^13.4.17",
"next": "^13.4.19",
"next-contentlayer": "^0.3.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down
5 changes: 4 additions & 1 deletion apps/blog/src/components/Mdx/Mdx.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type { ImageProps } from 'next/image'
import Image from 'next/image'
import { useMDXComponent } from 'next-contentlayer/hooks'
import InstagramPost from '../InstagramPost'
Expand All @@ -6,12 +7,14 @@ interface MdxProps {
code: string
}

const components = { Image: (props: ImageProps) => <Image {...props} />, InstagramPost }

export function Mdx({ code }: MdxProps) {
const Component = useMDXComponent(code)

return (
<article className="prose lg:prose-xl">
<Component components={{ Image, InstagramPost }} />
<Component components={components} />
</article>
)
}
2 changes: 1 addition & 1 deletion apps/gamehub-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@emotion/server": "^11.4.0",
"@memebattle/ui": "workspace:^",
"lodash": "^4.17.21",
"next": "^13.4.17",
"next": "^13.4.19",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"sharp": "^0.32.5"
Expand Down
94 changes: 47 additions & 47 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3271,7 +3271,7 @@ __metadata:
i18next-resources-to-backend: ^1.1.3
jsdom: ^22.1.0
negotiator: ^0.6.3
next: ^13.4.17
next: ^13.4.19
next-contentlayer: ^0.3.4
postcss: ^8.4.21
react: ^18.2.0
Expand Down Expand Up @@ -3313,7 +3313,7 @@ __metadata:
"@types/react": ^18.0.28
"@types/react-dom": ^18.0.11
lodash: ^4.17.21
next: ^13.4.17
next: ^13.4.19
react: ^18.2.0
react-dom: ^18.2.0
sharp: ^0.32.5
Expand Down Expand Up @@ -3705,72 +3705,72 @@ __metadata:
languageName: node
linkType: hard

"@next/env@npm:13.4.17":
version: 13.4.17
resolution: "@next/env@npm:13.4.17"
checksum: b941d5d6ef1b6f95460e9b79d776a8fb5af47af6c00d1665cbf0eab3d0f2348058db83d40deb00e5d1df0a13390358a408767cc3b6ded91da7c053a62ed8318c
"@next/env@npm:13.4.19":
version: 13.4.19
resolution: "@next/env@npm:13.4.19"
checksum: ace4f82890954ade0164fbe2b7ff988268d2b99b2e80caa6707c51fa4cbfaaa31e48fbbcecd4fd142af3503c544e1b4c91e8185d4af253c8fb46550e9e70ad7e
languageName: node
linkType: hard

"@next/swc-darwin-arm64@npm:13.4.17":
version: 13.4.17
resolution: "@next/swc-darwin-arm64@npm:13.4.17"
"@next/swc-darwin-arm64@npm:13.4.19":
version: 13.4.19
resolution: "@next/swc-darwin-arm64@npm:13.4.19"
conditions: os=darwin & cpu=arm64
languageName: node
linkType: hard

"@next/swc-darwin-x64@npm:13.4.17":
version: 13.4.17
resolution: "@next/swc-darwin-x64@npm:13.4.17"
"@next/swc-darwin-x64@npm:13.4.19":
version: 13.4.19
resolution: "@next/swc-darwin-x64@npm:13.4.19"
conditions: os=darwin & cpu=x64
languageName: node
linkType: hard

"@next/swc-linux-arm64-gnu@npm:13.4.17":
version: 13.4.17
resolution: "@next/swc-linux-arm64-gnu@npm:13.4.17"
"@next/swc-linux-arm64-gnu@npm:13.4.19":
version: 13.4.19
resolution: "@next/swc-linux-arm64-gnu@npm:13.4.19"
conditions: os=linux & cpu=arm64 & libc=glibc
languageName: node
linkType: hard

"@next/swc-linux-arm64-musl@npm:13.4.17":
version: 13.4.17
resolution: "@next/swc-linux-arm64-musl@npm:13.4.17"
"@next/swc-linux-arm64-musl@npm:13.4.19":
version: 13.4.19
resolution: "@next/swc-linux-arm64-musl@npm:13.4.19"
conditions: os=linux & cpu=arm64 & libc=musl
languageName: node
linkType: hard

"@next/swc-linux-x64-gnu@npm:13.4.17":
version: 13.4.17
resolution: "@next/swc-linux-x64-gnu@npm:13.4.17"
"@next/swc-linux-x64-gnu@npm:13.4.19":
version: 13.4.19
resolution: "@next/swc-linux-x64-gnu@npm:13.4.19"
conditions: os=linux & cpu=x64 & libc=glibc
languageName: node
linkType: hard

"@next/swc-linux-x64-musl@npm:13.4.17":
version: 13.4.17
resolution: "@next/swc-linux-x64-musl@npm:13.4.17"
"@next/swc-linux-x64-musl@npm:13.4.19":
version: 13.4.19
resolution: "@next/swc-linux-x64-musl@npm:13.4.19"
conditions: os=linux & cpu=x64 & libc=musl
languageName: node
linkType: hard

"@next/swc-win32-arm64-msvc@npm:13.4.17":
version: 13.4.17
resolution: "@next/swc-win32-arm64-msvc@npm:13.4.17"
"@next/swc-win32-arm64-msvc@npm:13.4.19":
version: 13.4.19
resolution: "@next/swc-win32-arm64-msvc@npm:13.4.19"
conditions: os=win32 & cpu=arm64
languageName: node
linkType: hard

"@next/swc-win32-ia32-msvc@npm:13.4.17":
version: 13.4.17
resolution: "@next/swc-win32-ia32-msvc@npm:13.4.17"
"@next/swc-win32-ia32-msvc@npm:13.4.19":
version: 13.4.19
resolution: "@next/swc-win32-ia32-msvc@npm:13.4.19"
conditions: os=win32 & cpu=ia32
languageName: node
linkType: hard

"@next/swc-win32-x64-msvc@npm:13.4.17":
version: 13.4.17
resolution: "@next/swc-win32-x64-msvc@npm:13.4.17"
"@next/swc-win32-x64-msvc@npm:13.4.19":
version: 13.4.19
resolution: "@next/swc-win32-x64-msvc@npm:13.4.19"
conditions: os=win32 & cpu=x64
languageName: node
linkType: hard
Expand Down Expand Up @@ -16745,20 +16745,20 @@ __metadata:
languageName: node
linkType: hard

"next@npm:^13.4.17":
version: 13.4.17
resolution: "next@npm:13.4.17"
"next@npm:^13.4.19":
version: 13.4.19
resolution: "next@npm:13.4.19"
dependencies:
"@next/env": 13.4.17
"@next/swc-darwin-arm64": 13.4.17
"@next/swc-darwin-x64": 13.4.17
"@next/swc-linux-arm64-gnu": 13.4.17
"@next/swc-linux-arm64-musl": 13.4.17
"@next/swc-linux-x64-gnu": 13.4.17
"@next/swc-linux-x64-musl": 13.4.17
"@next/swc-win32-arm64-msvc": 13.4.17
"@next/swc-win32-ia32-msvc": 13.4.17
"@next/swc-win32-x64-msvc": 13.4.17
"@next/env": 13.4.19
"@next/swc-darwin-arm64": 13.4.19
"@next/swc-darwin-x64": 13.4.19
"@next/swc-linux-arm64-gnu": 13.4.19
"@next/swc-linux-arm64-musl": 13.4.19
"@next/swc-linux-x64-gnu": 13.4.19
"@next/swc-linux-x64-musl": 13.4.19
"@next/swc-win32-arm64-msvc": 13.4.19
"@next/swc-win32-ia32-msvc": 13.4.19
"@next/swc-win32-x64-msvc": 13.4.19
"@swc/helpers": 0.5.1
busboy: 1.6.0
caniuse-lite: ^1.0.30001406
Expand Down Expand Up @@ -16797,7 +16797,7 @@ __metadata:
optional: true
bin:
next: dist/bin/next
checksum: 57768bc8e06681b7a995ef81768c8e25ad1724d31b3ea223e82c4298fb8ad3c5721880edabd8a5a2ccef741ea88442aa91e52e0941cb4c1fd54f75105c430ce9
checksum: f4873dab8888ed4dae14d36d7cf8dc54cd042695cf7ee41d05e8757f463d11952a594eb066143cc2f7253ea1d41c6efe681cdc3ab8c2fa6eb0815fa5a94de3dc
languageName: node
linkType: hard

Expand Down
Loading