use turbo in dev mode (#321)

This commit is contained in:
KM Koushik
2025-12-14 20:29:53 +11:00
committed by GitHub
parent 11b5ac1bf7
commit bef580ff92
7 changed files with 89 additions and 238 deletions
+2 -5
View File
@@ -7,11 +7,8 @@ await import("./src/env.js");
/** @type {import("next").NextConfig} */
const config = {
output: process.env.DOCKER_OUTPUT ? "standalone" : undefined,
experimental: {
instrumentationHook: true,
serverComponentsExternalPackages: ["bullmq"],
esmExternals: "loose",
},
serverExternalPackages: ["bullmq"],
transpilePackages: ["@usesend/ui", "@usesend/email-editor"],
images: {
remotePatterns: [
{
+4 -3
View File
@@ -4,7 +4,7 @@
"private": true,
"type": "module",
"scripts": {
"dev": "next dev -p 3000",
"dev": "next dev -p 3000 --turbopack",
"build": "next build",
"start": "next start",
"lint": "eslint . --max-warnings 0",
@@ -52,7 +52,7 @@
"lucide-react": "^0.503.0",
"mime-types": "^3.0.1",
"nanoid": "^5.1.5",
"next": "15.3.7",
"next": "15.5.8",
"next-auth": "^4.24.11",
"nodemailer": "^7.0.3",
"pino": "^9.7.0",
@@ -65,12 +65,13 @@
"react-hook-form": "^7.56.1",
"recharts": "^2.15.3",
"server-only": "^0.0.1",
"shiki": "^3.3.0",
"stripe": "^18.0.0",
"superjson": "^2.2.2",
"tldts": "^7.0.4",
"ua-parser-js": "^2.0.3",
"usesend-js": "workspace:*",
"use-debounce": "^10.0.4",
"usesend-js": "workspace:*",
"zod": "^3.24.3",
"zustand": "^5.0.8"
},
+5 -2
View File
@@ -1,12 +1,15 @@
import { type Config } from "tailwindcss";
import sharedConfig from "@usesend/tailwind-config/tailwind.config";
import path from "path";
import { fileURLToPath } from "url";
const here = path.dirname(fileURLToPath(import.meta.url));
export default {
...sharedConfig,
content: [
"./src/**/*.tsx",
`${path.join(require.resolve("@usesend/ui"), "..")}/**/*.{ts,tsx}`,
`${path.join(require.resolve("@usesend/email-editor"), "..")}/**/*.{ts,tsx}`,
path.join(here, "../../packages/ui/src/**/*.{ts,tsx}"),
path.join(here, "../../packages/email-editor/src/**/*.{ts,tsx}"),
],
} satisfies Config;