Skip to content

Commit

Permalink
Encode ..., escape []
Browse files Browse the repository at this point in the history
  • Loading branch information
Anca Emcken authored and Anca Emcken committed Mar 8, 2021
1 parent 8fd1e30 commit 557bb99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/data/routes/docs/nextjs/troubleshooting/en.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ The sample Next.js app's building and rendering depend on successfully fetching

The `GraphiQL` interface at `<sitecore hostname + graphQL endpoint>/ui?sc_apikey=<api key>` is a visual browser for GraphQL data. It is a great tool for diagnosing these types of issues.

To support static generation functionality, the sample app exports a `getStaticPaths` function from the <a href="https://github.com/Sitecore/jss/blob/master/samples/nextjs/src/pages/%5B%5B...path%5D%5D.tsx">[[...path]] page</a>, which needs to provide the list of pages to pre-render to Next.js. To check whether `getStaticPaths` can get the list of pages, try running the query that `getStaticPaths` uses directly in GraphiQL.
To support static generation functionality, the sample app exports a `getStaticPaths` function from the <a href="https://github.com/Sitecore/jss/blob/master/samples/nextjs/src/pages/%5B%5B%2E%2E%2Epath%5D%5D.tsx">[\[...path\]] page</a>, which needs to provide the list of pages to pre-render to Next.js. To check whether `getStaticPaths` can get the list of pages, try running the query that `getStaticPaths` uses directly in GraphiQL.

```graphql
# YOUR_PATH should be the ID of your site root (home page) in lower-case, with dashes removed.
Expand Down

0 comments on commit 557bb99

Please sign in to comment.