Skip to content

Commit

Permalink
deps: pilot nextjs 15
Browse files Browse the repository at this point in the history
credits: add nextjs and rare
  • Loading branch information
IncognitoTGT committed May 23, 2024
1 parent 168b7f1 commit fda639b
Show file tree
Hide file tree
Showing 4 changed files with 741 additions and 584 deletions.
10 changes: 4 additions & 6 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @ts-check
import NextBundleAnalyzer from "@next/bundle-analyzer";
import { execSync } from "node:child_process";
const withBundleAnalyzer = NextBundleAnalyzer();
const withBundleAnalyzer = NextBundleAnalyzer({ enabled: process.env.ANALYZE === "true" });
/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
Expand All @@ -19,6 +19,7 @@ const nextConfig = {
BUILD_DATE: Date.now().toString(),
},
experimental: {
ppr: true,
typedRoutes: true,
instrumentationHook: true,
webpackBuildWorker: true,
Expand Down Expand Up @@ -48,8 +49,5 @@ const nextConfig = {
return config;
},
};
let config = nextConfig;
if (process.env.ANALYZE) {
config = withBundleAnalyzer(nextConfig);
}
export default config;

export default withBundleAnalyzer(nextConfig);
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@
"dotenv": "^16.4.5",
"drizzle-orm": "^0.30.4",
"lucide-react": "^0.358.0",
"next": "14.2.3",
"next": "15.0.0-rc.0",
"next-auth": "5.0.0-beta.18",
"next-themes": "^0.3.0",
"node-loader": "^2.0.0",
"postgres": "^3.4.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react": "19.0.0-rc-4c2e457c7c-20240522",
"react-dom": "19.0.0-rc-4c2e457c7c-20240522",
"server-only": "^0.0.1",
"sharp": "^0.33.3",
"sonner": "^1.4.41",
Expand All @@ -64,8 +64,8 @@
"@types/node": "^20.11.30",
"@types/novnc__novnc": "^1.3.5",
"@types/pg": "^8.11.4",
"@types/react": "^18.2.67",
"@types/react-dom": "^18.2.22",
"@types/react": "^18.3.2",
"@types/react-dom": "^18.3.0",
"autoprefixer": "^10.4.19",
"drizzle-kit": "^0.21.1",
"postcss": "^8.4.38",
Expand Down
Loading

0 comments on commit fda639b

Please sign in to comment.