From aa0ba4ca56890bcbdb3baf38bd3f8d4fc60ee020 Mon Sep 17 00:00:00 2001 From: Artem Zverev Date: Thu, 24 Aug 2023 02:04:08 +0200 Subject: [PATCH] [#402]: Fix blog dev command --- apps/blog/package.json | 4 +- apps/blog/src/components/Mdx/Mdx.tsx | 5 +- apps/gamehub-client/package.json | 2 +- yarn.lock | 94 ++++++++++++++-------------- 4 files changed, 54 insertions(+), 51 deletions(-) diff --git a/apps/blog/package.json b/apps/blog/package.json index f1023275..3f572587 100644 --- a/apps/blog/package.json +++ b/apps/blog/package.json @@ -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", @@ -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", diff --git a/apps/blog/src/components/Mdx/Mdx.tsx b/apps/blog/src/components/Mdx/Mdx.tsx index 58102c45..76d8c056 100644 --- a/apps/blog/src/components/Mdx/Mdx.tsx +++ b/apps/blog/src/components/Mdx/Mdx.tsx @@ -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' @@ -6,12 +7,14 @@ interface MdxProps { code: string } +const components = { Image: (props: ImageProps) => , InstagramPost } + export function Mdx({ code }: MdxProps) { const Component = useMDXComponent(code) return (
- +
) } diff --git a/apps/gamehub-client/package.json b/apps/gamehub-client/package.json index cbaa7d7d..837b1e69 100644 --- a/apps/gamehub-client/package.json +++ b/apps/gamehub-client/package.json @@ -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" diff --git a/yarn.lock b/yarn.lock index 23acde77..d108b318 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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 @@ -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 @@ -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 @@ -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 @@ -16797,7 +16797,7 @@ __metadata: optional: true bin: next: dist/bin/next - checksum: 57768bc8e06681b7a995ef81768c8e25ad1724d31b3ea223e82c4298fb8ad3c5721880edabd8a5a2ccef741ea88442aa91e52e0941cb4c1fd54f75105c430ce9 + checksum: f4873dab8888ed4dae14d36d7cf8dc54cd042695cf7ee41d05e8757f463d11952a594eb066143cc2f7253ea1d41c6efe681cdc3ab8c2fa6eb0815fa5a94de3dc languageName: node linkType: hard