Skip to content

Commit

Permalink
Fix the /components/overview/ page (#943)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
danoc authored Jul 12, 2023
1 parent 9da8420 commit 598fe30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion next/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const nextConfig = {
},
async rewrites() {
return {
beforeFiles: [
afterFiles: [
// Proxy everything except the homepage to the Gatsby version of the site.
// We will remove routes from this once they're ready to launch in Next.js.
{
Expand Down

0 comments on commit 598fe30

Please sign in to comment.