grafana / k6-docs

The k6 documentation website.
https://grafana.com/docs/k6/latest/
87 stars 220 forks source link

[Question] How to build locally to get htmls #1711

Open WestFarmer opened 2 months ago

WestFarmer commented 2 months ago

I want to serve k6 docs in our air-gapped environment.

thanks!

WestFarmer commented 2 months ago

run npm run build, failed with:

success createPages - 233.360s
success createPagesStatefully - 7.070s
info Total nodes: 9368, SitePage nodes: 979 (use --verbose for breakdown)
success Checking for changed pages - 0.001s
success onPreExtractQueries - 0.002s

 ERROR #85923  GRAPHQL

There was an error in your GraphQL query:

Cannot query field "siteUrl" on type "SiteSiteMetadata".

If you don't expect "siteUrl" to exist on the type "SiteSiteMetadata" it is most likely a typo. However, if you expect "siteUrl" to exist there are a couple of solutions to common problems:

- If you added a new data source and/or changed something inside gatsby-node/gatsby-config, please try a restart of your development server.
- You want to optionally use your field "siteUrl" and right now it is not used anywhere.

It is recommended to explicitly type your GraphQL schema if you want to use optional fields.

File: src/components/shared/seo/seo.view.js:38:11

See our docs page for more info on this error: https://gatsby.dev/creating-type-definitions

not finished Running gatsby-plugin-sharp.IMAGE_PROCESSING jobs - 256.357s
failed extract queries from components - 3.888s