You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 10, 2021. It is now read-only.
When the user navigates client-side (using NextJS Link) to a page that
uses `getServerSideProps` or `getStaticProps`, NextJS makes a request
for the page's data.
This request goes to a special path that follows this pattern:
@_next/data/%BUILD_ID%/path/to/page.json
For pages with fallback: true, we need to redirect that route to the
page's Netlify Function. Dynamic parameters in the data route are
already converted correctly, but until now, this was not true for
catch-all routes.
This commit fixes that by converting data routes with catch-all into
the Netlify-compatible redirect using the * symbol.
For example, /_next/data/%BUILD_ID%/path/to/page/:...slug.json
becomes /_next/data/%BUILD_ID%/path/to/page/*
0 commit comments