From 04365a1536c67f346c1e9bd87de4e06d5c9cd78a Mon Sep 17 00:00:00 2001 From: Louis DeScioli Date: Tue, 11 Apr 2023 19:26:17 -0400 Subject: [PATCH] fix(nextjs): Let Next.js handler serve public/ folder --- packages/next/src/executors/server/lib/default-server.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/next/src/executors/server/lib/default-server.ts b/packages/next/src/executors/server/lib/default-server.ts index 72fe9948f25db..e77e1205de78e 100644 --- a/packages/next/src/executors/server/lib/default-server.ts +++ b/packages/next/src/executors/server/lib/default-server.ts @@ -19,9 +19,6 @@ export async function defaultServer( const server: express.Express = express(); server.disable('x-powered-by'); - // Serve shared assets copied to `public` folder - server.use(express.static(path.resolve(settings.dir, 'public'))); - // Set up the proxy. if (proxyConfig) { const proxyMiddleware =