LoginSignup
0
0

More than 3 years have passed since last update.

.env.developからgraphql playgroundが読み込めない

Posted at

課題

gatsbyでgraphql playgroundが使いたい。

使うために、
1. .env.developmentにGATSBY_GRAPHQL_IDE=playgroundを追加し,
2. npm install --save-dev env-cmdをし、
3. package.jsonにenv-cmd .env.development gatsby develop を追加し、
4. npm run developした

しかし、playgroundが開かない

解決策

package.jsonにenv-cmd -f .env.development gatsby develop を追加。

参考:https://stackoverflow.com/questions/56301852/env-cmd-error-failed-to-locate-env-file-in-gatsby

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0