Skip to content

Commit

Permalink
fix: simplify Next.js configuration for development
Browse files Browse the repository at this point in the history
  • Loading branch information
devin-ai-integration[bot] committed Nov 13, 2024
1 parent da89078 commit 719fb24
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: false, // Temporarily disabled for debugging
reactStrictMode: true,
typescript: {
ignoreBuildErrors: process.env.NEXT_PUBLIC_IGNORE_BUILD_ERROR === "true",
},
Expand All @@ -10,7 +10,6 @@ const nextConfig = {
},
webpack: config => {
config.resolve.fallback = { fs: false, net: false, tls: false };
config.externals.push("pino-pretty", "lokijs", "encoding");
return config;
},
images: {
Expand All @@ -23,10 +22,6 @@ const nextConfig = {
experimental: {
forceSwcTransforms: true,
},
// Remove static export to support dynamic routes and middleware
// output: 'export',
basePath: process.env.CUSTOM_DOMAIN === "true" ? "" : process.env.GITHUB_PAGES === "true" ? "/MissionEnrollment" : "",
assetPrefix: process.env.CUSTOM_DOMAIN === "true" ? "" : process.env.GITHUB_PAGES === "true" ? "/MissionEnrollment/" : "",
// Ensure client-side rendering works properly
trailingSlash: true,
};
Expand Down

0 comments on commit 719fb24

Please sign in to comment.