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 the /components/overview/ page #943

Merged
merged 1 commit into from
Jul 12, 2023
Merged

Conversation

danoc
Copy link
Member

@danoc danoc commented Jul 12, 2023

We proxy some routes from Next.js to Gatsby, but we had it set as beforeFiles. This caused /components/overview to fail because the glob in one of the rewrites was catching it. Switching to afterFiles tells Next.js to only proxy if the page doesn't exist in Next.js.

@danoc danoc requested review from lavelle and egoens July 12, 2023 19:30
@netlify
Copy link

netlify bot commented Jul 12, 2023

Deploy Preview for thumbprint ready!

Name Link
🔨 Latest commit
🔍 Latest deploy log https://app.netlify.com/sites/thumbprint/deploys/64af070ff448e61fc588c468
😎 Deploy Preview https://deploy-preview-943--thumbprint.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 configuration.

@netlify
Copy link

netlify bot commented Jul 12, 2023

Deploy Preview for thumbprint-gatsby canceled.

Name Link
🔨 Latest commit 612f451
🔍 Latest deploy log https://app.netlify.com/sites/thumbprint-gatsby/deploys/64af0218cd7bda0008fc1fc8

We proxy some routes from Next.js to Gatsby, but we had it set as `beforeFiles`. This caused `/components/overview` to fail because the glob in one of the rewrites was catching it. Switching to `afterFiles` tells Next.js to only proxy if the page doesn't exist in Next.js.
@danoc danoc force-pushed the daniel/fix-components-overview branch from 8a82a51 to 612f451 Compare July 12, 2023 19:42
@danoc danoc merged commit 598fe30 into master Jul 12, 2023
5 of 9 checks passed
@danoc danoc deleted the daniel/fix-components-overview branch July 12, 2023 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants