Make turbopack easier to use in local development

This commit is contained in:
Sam Becker 2024-05-31 10:00:07 -05:00
parent 141c16135f
commit 0078925cc0
3 changed files with 5 additions and 6 deletions

View File

@ -43,6 +43,7 @@
"Supabase", "Supabase",
"thephotoblog", "thephotoblog",
"trpc", "trpc",
"Turbopack",
"undici", "undici",
"unnest", "unnest",
"upstash", "upstash",

View File

@ -37,8 +37,6 @@ const nextConfig = {
}, },
}; };
const withBundleAnalyzer = require('@next/bundle-analyzer')({ module.exports = process.env.ANALYZE === 'true'
enabled: process.env.ANALYZE === 'true', ? require('@next/bundle-analyzer')()(nextConfig)
}); : nextConfig;
module.exports = withBundleAnalyzer(nextConfig);

View File

@ -1,7 +1,7 @@
{ {
"name": "exif-photo-blog", "name": "exif-photo-blog",
"scripts": { "scripts": {
"dev": "next dev", "dev": "next dev --turbo",
"build": "next build", "build": "next build",
"start": "next start", "start": "next start",
"lint": "next lint", "lint": "next lint",