diff --git a/.vscode/settings.json b/.vscode/settings.json index 4a170b68..bb3ac392 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -43,6 +43,7 @@ "Supabase", "thephotoblog", "trpc", + "Turbopack", "undici", "unnest", "upstash", diff --git a/next.config.js b/next.config.js index f0ff1b30..893b3ae7 100644 --- a/next.config.js +++ b/next.config.js @@ -37,8 +37,6 @@ const nextConfig = { }, }; -const withBundleAnalyzer = require('@next/bundle-analyzer')({ - enabled: process.env.ANALYZE === 'true', -}); - -module.exports = withBundleAnalyzer(nextConfig); +module.exports = process.env.ANALYZE === 'true' + ? require('@next/bundle-analyzer')()(nextConfig) + : nextConfig; diff --git a/package.json b/package.json index 628d3e8e..e4efad09 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "exif-photo-blog", "scripts": { - "dev": "next dev", + "dev": "next dev --turbo", "build": "next build", "start": "next start", "lint": "next lint",