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

fix: add next.js 12's new /trace endpoint to HIDDEN_PATHS #1259

Merged
merged 5 commits into from
Mar 21, 2022
Merged

fix: add next.js 12's new /trace endpoint to HIDDEN_PATHS #1259

merged 5 commits into from
Mar 21, 2022

Conversation

chenders
Copy link

@chenders chenders commented Mar 10, 2022

Summary

The location of the trace file generated by next.js's build changed from /traces/trace to /trace in next.js v12 (from this PR in particular).

Currently, going to /trace on a nextjs v12 + netlify site serves the trace file like any other static file. This PR prevents that in the same way it also prevents access to /traces.

Test plan

  1. Visit the Deploy Preview's /trace page https://deploy-preview-1259--netlify-plugin-nextjs-demo.netlify.app/trace
  2. Observe that it shows a 404 page similar to the pre-existing /traces page https://deploy-preview-1259--netlify-plugin-nextjs-demo.netlify.app/traces

Relevant links (GitHub issues, Notion docs, etc.) or a picture of cute animal

vercel/next.js#28728

Standard checks:

  • Check the Deploy Preview's Demo site for your PR's functionality

🧪 Once merged, make sure to update the version if needed and that it was published correctly.

The location of the `trace` file changed in vercel/next.js#28728.
@netlify
Copy link

netlify bot commented Mar 10, 2022

Deploy Preview for netlify-plugin-nextjs-demo ready!

Name Link
🔨 Latest commit 6e52f49
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-demo/deploys/62307908be4654000860066f
😎 Deploy Preview https://deploy-preview-1259--netlify-plugin-nextjs-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Mar 10, 2022

👷 Deploy request for netlify-plugin-nextjs-static-root-demo pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit f25643e

@netlify
Copy link

netlify bot commented Mar 10, 2022

👷 Deploy request for netlify-plugin-nextjs-export-demo pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit f25643e

@netlify
Copy link

netlify bot commented Mar 10, 2022

Deploy Preview for netlify-plugin-nextjs-nx-monorepo-demo ready!

Name Link
🔨 Latest commit a09ab79
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-nx-monorepo-demo/deploys/62386d7a55d0f1000886419e
😎 Deploy Preview https://deploy-preview-1259--netlify-plugin-nextjs-nx-monorepo-demo.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@chenders
Copy link
Author

oof, a whole lot of errors in the checks. please let me know if you have any hints on how to get those to pass!

@kodiakhq kodiakhq bot merged commit 84345a8 into netlify:main Mar 21, 2022
@chenders chenders deleted the fix/block-trace-url branch March 22, 2022 00:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants