如何使用游乐场而不是 graph-i-ql?
我尝试了几种方法来加载 Playground 而不是 graph-i-ql,更新了 xcode,使用了不同的浏览器,全局安装的 Playground,重新启动等。我的项目仍在http://localhost 加载 graph-i-ql:gatsby develop
在我的鱼壳中运行后8000/___graphql 。
{
"name": "gatsby-bootcamp",
"private": true,
"description": "Gatsby Bootcamp by Andrew Mead",
"version": "0.1.0",
"license": "MIT",
"scripts": {
"build": "gatsby build",
"develop": "GATSBY_GRAPHQL_IDE=playground gatsby develop",
"format": "prettier --write src/**/*.{js,jsx}",
"start": "npm run develop",
"serve": "gatsby serve",
"test": "echo \"Write tests! -> https://gatsby.dev/unit-testing\""
},
"dependencies": {
"babel-plugin-styled-components": "^1.10.0",
"gatsby": "^2.3.16",
"gatsby-cli": "^2.5.9",
"gatsby-plugin-styled-components": "^3.0.7",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"styled-components": "^4.2.0"
},
"devDependencies": {
"graphql-playground": "^1.3.17",
"prettier": "^1.17.0"
}
}