diff --git a/apps/activity/package.json b/apps/activity/package.json
index 4a28053..aadbb8e 100644
--- a/apps/activity/package.json
+++ b/apps/activity/package.json
@@ -3,9 +3,9 @@
"version": "1.0.0",
"private": true,
"scripts": {
- "dev": "next dev --port 3001",
+ "dev": "next dev -p 3001",
"build": "next build",
- "start": "next start",
+ "start": "next start -p 3001",
"lint": "biome lint ./app",
"format": "biome format ./app --write"
},
diff --git a/apps/home/app/@readme/default.tsx b/apps/home/app/@readme/default.tsx
index fc747c4..40aa13f 100644
--- a/apps/home/app/@readme/default.tsx
+++ b/apps/home/app/@readme/default.tsx
@@ -1,10 +1,10 @@
-import fs from 'node:fs'
+import { promises as fs } from 'node:fs'
import path from 'node:path'
import { Readme } from '@/_shared'
-export default function Page() {
- const filePath = path.join(process.cwd(), 'app/@readme/_shared/content/main.mdx')
- const mainReadme = fs.readFileSync(filePath, 'utf8')
+export default async function Page() {
+ const filePath = path.join(process.cwd(), './app/@readme/_shared/content/main.mdx')
+ const mainReadme = await fs.readFile(filePath, { encoding: 'utf8' })
return
}
diff --git a/apps/home/app/@readme/people/page.tsx b/apps/home/app/@readme/people/page.tsx
index 51fd385..fa6b656 100644
--- a/apps/home/app/@readme/people/page.tsx
+++ b/apps/home/app/@readme/people/page.tsx
@@ -1,4 +1,4 @@
-import fs from 'node:fs'
+import { promises as fs } from 'node:fs'
import path from 'node:path'
import { Readme } from '@/_shared'
@@ -8,8 +8,8 @@ export default async function Page({
searchParams: { username: string }
}) {
const { username } = searchParams
- const filePath = path.join(process.cwd(), 'app/@readme/_shared/content', `${username}.mdx`)
- const readme = fs.readFileSync(filePath, 'utf8')
+ const filePath = path.join(process.cwd(), `./app/@readme/_shared/content/${username}.mdx`)
+ const readme = await fs.readFile(filePath, { encoding: 'utf8' })
return
}
diff --git a/apps/home/next.config.js b/apps/home/next.config.js
index dd47708..71302c2 100644
--- a/apps/home/next.config.js
+++ b/apps/home/next.config.js
@@ -7,6 +7,9 @@ const nextConfig = {
experimental: {
typedRoutes: true,
missingSuspenseWithCSRBailout: false,
+ outputFileTracingIncludes: {
+ '/people': ['./app/@readme/_shared/content/**/*'],
+ },
},
webpack(config) {
const fileLoaderRule = config.module.rules.find((rule) => rule.test?.test?.('.svg'))
diff --git a/apps/home/package.json b/apps/home/package.json
index dfd555e..5ed9918 100644
--- a/apps/home/package.json
+++ b/apps/home/package.json
@@ -5,7 +5,7 @@
"scripts": {
"dev": "next dev -p 3002",
"build": "next build",
- "start": "next start",
+ "start": "next start -p 3002",
"lint": "biome lint ./app",
"format": "biome format ./app --write"
},
diff --git a/package.json b/package.json
index bc2edd4..478be52 100644
--- a/package.json
+++ b/package.json
@@ -11,6 +11,7 @@
"dev:activity": "turbo dev --filter=activity",
"dev:home": "turbo dev --filter=home",
"dev:web": "turbo dev",
+ "start": "turbo start",
"lint": "turbo lint",
"format": "turbo format",
"prepare": "husky",
diff --git a/turbo.json b/turbo.json
index e28ca9f..4083c9b 100644
--- a/turbo.json
+++ b/turbo.json
@@ -16,6 +16,11 @@
"dev": {
"cache": false,
"persistent": true
+ },
+ "start": {
+ "dependsOn": ["build"],
+ "cache": false,
+ "persistent": true
}
}
}