Skip to content

Commit

Permalink
fix(nextjs): Let Next.js handler serve public/ folder (nrwl#16318)
Browse files Browse the repository at this point in the history
Co-authored-by: Louis DeScioli <louis@spatial.io>
  • Loading branch information
2 people authored and peppoasap committed Apr 18, 2023
1 parent 0816ae9 commit b5a1c5d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/next/src/executors/server/lib/default-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit b5a1c5d

Please sign in to comment.