Make turbopack easier to use in local development
This commit is contained in:
parent
141c16135f
commit
0078925cc0
1
.vscode/settings.json
vendored
1
.vscode/settings.json
vendored
@ -43,6 +43,7 @@
|
|||||||
"Supabase",
|
"Supabase",
|
||||||
"thephotoblog",
|
"thephotoblog",
|
||||||
"trpc",
|
"trpc",
|
||||||
|
"Turbopack",
|
||||||
"undici",
|
"undici",
|
||||||
"unnest",
|
"unnest",
|
||||||
"upstash",
|
"upstash",
|
||||||
|
|||||||
@ -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);
|
|
||||||
|
|||||||
@ -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",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user