Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Next.js custom headers not being applied to files in public folder #16237

Closed
lourd opened this issue Apr 11, 2023 · 1 comment · Fixed by #16318
Closed

Next.js custom headers not being applied to files in public folder #16237

lourd opened this issue Apr 11, 2023 · 1 comment · Fixed by #16318
Assignees
Labels
outdated scope: nextjs Issues related to NextJS support for Nx type: bug

Comments

@lourd
Copy link
Contributor

lourd commented Apr 11, 2023

Current Behavior

Files in the public directory of a Next.js application do not have custom headers defined in the next.config.js applied.

Expected Behavior

The headers should be applied

GitHub Repo

https://github.com/lourd/nx-next-headers-bug

Steps to Reproduce

  1. npm install
  2. npm run build regression-repro
  3. npm test regression-repro-e2e

Nx Report

Node : 16.14.0
   OS   : darwin arm64
   yarn : 1.22.19
   
   nx                      : 15.9.2
   @nrwl/js                : 15.9.2
   @nrwl/jest              : 15.9.2
   @nrwl/linter            : 15.9.2
   @nrwl/workspace         : 15.9.2
   @nrwl/cli               : 15.9.2
   @nrwl/detox             : 15.9.2
   @nrwl/devkit            : 15.9.2
   @nrwl/eslint-plugin-nx  : 15.9.2
   @nrwl/next              : 15.9.2
   @nrwl/node              : 15.9.2
   @nrwl/react             : 15.9.2
   @nrwl/react-native      : 15.9.2
   @nrwl/tao               : 15.9.2
   @nrwl/webpack           : 15.9.2
   typescript              : 5.0.4
   ---------------------------------------
   Community plugins:
   @ns3/nx-jest-playwright : 4.1.0

Failure Logs

No response

Additional Information

No response

@github-actions
Copy link

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated scope: nextjs Issues related to NextJS support for Nx type: bug
Projects
None yet
3 participants