kriasoft / graphql-starter-kit

💥 Monorepo template (seed project) pre-configured with GraphQL API, PostgreSQL, React, and Joy UI.
https://graphqlstart.com
MIT License
3.88k stars 553 forks source link

fix(web): Fix `index.html` caching issue in production #336

Closed koistya closed 2 years ago

koistya commented 2 years ago

web/package.json

{
  "...",
  "relay": {
    "src": ".",
    "schema": "../api/schema.graphql",
    "language": "typescript",
    "artifactDirectory": "./queries",
    "schemaExtensions": [
      "."
    ],
    "eagerEsModules": true
  }
}