Skip to content

Commit

Permalink
Fix the /components/overview/ page
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 committed Jul 12, 2023
1 parent 9da8420 commit 8a82a51
Show file tree
Hide file tree
Showing 2 changed files 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
Empty file added next/pages/overview/index.tsx
Empty file.

0 comments on commit 8a82a51

Please sign in to comment.