From fc88f3854744b96f9a7d75e6b798b4b63b908387 Mon Sep 17 00:00:00 2001 From: Ridoy Chandra Dey Date: Sun, 3 Nov 2024 08:32:17 +0600 Subject: [PATCH] Setup Turbopack for development Signed-off-by: Ridoy Chandra Dey --- next.config.mjs | 6 ++++++ package.json | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/next.config.mjs b/next.config.mjs index 71ac1b2..6d85547 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -25,6 +25,12 @@ const nextConfig = { compiler: { styledComponents: true, }, + experimental: { + turbo: { + optimizeCss: true, + transitivePackages: true + }, + } }; export default withMDX(nextConfig); diff --git a/package.json b/package.json index f7041ae..41bb5c5 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "private": true, "type": "module", "scripts": { - "next-dev": "next dev", + "next-dev": "next dev --turbo", "content-watch": "nodemon --ext ts,mdx --watch ./content --ignore ./content/outline.json --exec \"tsx ./scripts/generateOutline.ts\"", "dev": "concurrently \"pnpm run next-dev\" \"pnpm run content-watch\"", "build": "tsx ./scripts/generateOutline.ts && next build",