diff --git a/package.json b/package.json index 85dc870b8686..934fc2c004d7 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "db:push-test": "NODE_ENV=test drizzle-kit push", "db:studio": "drizzle-kit studio", "db:z-pull": "drizzle-kit introspect", - "dev": "next dev -p 3010", + "dev": "next dev --turbo -p 3010", "docs:i18n": "lobe-i18n md && npm run lint:mdx", "docs:seo": "lobe-seo && npm run lint:mdx", "i18n": "npm run workflow:i18n && lobe-i18n", @@ -126,7 +126,7 @@ "@lobehub/tts": "^1.25.1", "@lobehub/ui": "^1.151.5", "@neondatabase/serverless": "^0.10.1", - "@next/third-parties": "^14.2.15", + "@next/third-parties": "^15.0.0", "@react-spring/web": "^9.7.5", "@sentry/nextjs": "^7.119.2", "@serwist/next": "^9.0.9", @@ -172,7 +172,7 @@ "mammoth": "^1.8.0", "modern-screenshot": "^4.4.39", "nanoid": "^5.0.7", - "next": "14.2.8", + "next": "^15.0.0", "next-auth": "beta", "next-mdx-remote": "^4.4.1", "nextjs-toploader": "^3.7.15", @@ -240,8 +240,8 @@ "@lobehub/i18n-cli": "^1.20.0", "@lobehub/lint": "^1.24.4", "@lobehub/seo-cli": "^1.4.2", - "@next/bundle-analyzer": "^14.2.15", - "@next/eslint-plugin-next": "^14.2.15", + "@next/bundle-analyzer": "^15.0.0", + "@next/eslint-plugin-next": "^15.0.0", "@peculiar/webcrypto": "^1.5.0", "@testing-library/jest-dom": "^6.6.2", "@testing-library/react": "^16.0.1", diff --git a/src/utils/server/responsive.ts b/src/utils/server/responsive.ts index c2e5ef38ba99..21a172cfb03f 100644 --- a/src/utils/server/responsive.ts +++ b/src/utils/server/responsive.ts @@ -26,7 +26,7 @@ export const gerServerDeviceInfo = () => { throw new Error('[Server method] you are importing a server-only module outside of server'); } - const { get } = headers(); + const { get } = headers() as unknown as UnsafeUnwrappedHeaders; const ua = get('user-agent'); // console.debug(ua);