env-cmd error failed to locate ./.env file in gatsby?

后端 未结 12 726
鱼传尺愫
鱼传尺愫 2020-12-15 05:33

I have a file name .env.development in the root folder. I had install env-cmd as dev dependencies
when I start the server

  > npm run develop
         


        
12条回答
  •  无人及你
    2020-12-15 05:56

    In Windows. First create file .env.development Then add in package.json: "develop": "env-cmd -f .env.development --fallback gatsby develop" and: npm run develop attached: https://css-tricks.com/using-graphql-playground-with-gatsby

提交回复
热议问题