Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

107
Views
storeUrl and password are not required .env issue

I have an issue using gatsby-source-shopify , i have inside the .env file :

GATSBY_STOREFRONT_ACCESS_TOKEN = xxxxx
GATSBY_SHOPIFY_STORE_URL= xxxxxx.myshopify.com/
SHOPIFY_SHOP_PASSWORD= xxx

gatsby-config.js:

require("dotenv").config()
module.exports = {
  siteMetadata: {
    siteTitle: "xxxx",
    siteTitleDefault: "xxxx",
    siteUrl: "xxxxxxx.myshopify.com/",
    hrefLang: "en",
  },
  flags: {
    FAST_DEV: true,
  },


 plugins: [
   { resolve: "gatsby-source-shopify",
    options: {
      password: process.env.SHOPIFY_APP_PASSWORD,
      storeUrl: process.env.GATSBY_MYSHOPIFY_URL,
      // salesChannel: process.env.SHOPIFY_APP_ID, // Optional but recommended
    },
},
]

eventually when i run gatsby develop i get this issue :

Invalid plugin options for "gatsby-source-shopify":

  • "storeUrl" is required
  • "password" is required

not finished load plugins - 0.807s it's like .env is not working properly

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Check your variable names, the names in the .env and the names in the code don't actually match. You could update the code to:

{ resolve: "gatsby-source-shopify",
    options: {
      password: process.env.SHOPIFY_SHOP_PASSWORD,
      storeUrl: process.env.GATSBY_SHOPIFY_STORE_URL,
      // salesChannel: process.env.SHOPIFY_APP_ID, // Optional but recommended
    },
}

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!