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",
"thephotoblog",
"trpc",
"Turbopack",
"undici",
"unnest",
"upstash",

View File

@ -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;

View File

@ -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",