chore: update Next.js config and package metadata

This commit is contained in:
sepehr 2026-01-11 23:44:38 +01:00
parent b85841248d
commit 7ce4f41cf9
2 changed files with 12 additions and 3 deletions

View File

@ -11,8 +11,17 @@ const nextConfig: NextConfig = {
// Enable standalone output for Docker // Enable standalone output for Docker
output: 'standalone', output: 'standalone',
// Disable Turbopack for Docker builds - use Webpack instead // Webpack config (needed for PWA plugin)
// Turbopack has issues with Tailwind CSS 4 in Docker containers webpack: (config, { isServer }) => {
// Fixes npm packages that depend on `fs` module
if (!isServer) {
config.resolve.fallback = {
...config.resolve.fallback,
fs: false,
};
}
return config;
},
// Optimize for production // Optimize for production
reactStrictMode: true, reactStrictMode: true,

View File

@ -5,7 +5,7 @@
"scripts": { "scripts": {
"dev": "set TURBOPACK=0&& next dev", "dev": "set TURBOPACK=0&& next dev",
"dev:turbo": "next dev", "dev:turbo": "next dev",
"build": "next build", "build": "next build --webpack",
"start": "next start", "start": "next start",
"db:generate": "prisma generate", "db:generate": "prisma generate",
"test": "playwright test", "test": "playwright test",