Coder Social home page Coder Social logo

env file about commerce HOT 17 CLOSED

vercel avatar vercel commented on May 1, 2024 1
env file

from commerce.

Comments (17)

FredvanRijswijk avatar FredvanRijswijk commented on May 1, 2024 16

If you use the vercel cli you can use this vercel env pull .env.local super easy and the right keys at once

from commerce.

Rando1993 avatar Rando1993 commented on May 1, 2024 2

https:>UI_+bot+link//api_run

from commerce.

Strutsagget avatar Strutsagget commented on May 1, 2024 2

The store front api and url you will get from stencil that means front end api under advanced settings get api token dropdown.

Hi and thank you for helping.

What do you mean with stencil? I cant find anything named stencil in the big commerce dashboard.
Also API seemed to be changed as you now make API users and those get the file I mentioned earlier.

Could you elaborate with what is the different meaning of STORE and STOREFRONT and where do I find API and token for each of them them?

from commerce.

KasiaSmolarska avatar KasiaSmolarska commented on May 1, 2024 2

Hi. I need some help. I linked my project by vercel link and still vercel env pull .env.local generates an empty env.local file.

Do I need to do anything else to make it work?

from commerce.

rmaximoc avatar rmaximoc commented on May 1, 2024 2

Hi. I need some help. I linked my project by vercel link and still vercel env pull .env.local generates an empty env.local file.

Do I need to do anything else to make it work?

I have the same issue here

from commerce.

techrangle avatar techrangle commented on May 1, 2024 1

Add these lines but i am trying to find store front api url and store front api token.

BIGCOMMERCE_STOREFRONT_API_URL=
BIGCOMMERCE_STOREFRONT_API_TOKEN=
BIGCOMMERCE_STORE_API_URL=
BIGCOMMERCE_STORE_API_TOKEN=
BIGCOMMERCE_STORE_API_CLIENT_ID= 

from commerce.

Strutsagget avatar Strutsagget commented on May 1, 2024 1

Hi
Where can I find these settings?

BIGCOMMERCE_STOREFRONT_API_URL=
BIGCOMMERCE_STOREFRONT_API_TOKEN=
BIGCOMMERCE_STORE_API_URL=
BIGCOMMERCE_STORE_API_TOKEN=
BIGCOMMERCE_STORE_API_CLIENT_ID=

After creating an API user I get a file with:
ACCESS TOKEN:
CLIENT ID:
CLIENT SECRET:
NAME:
API PATH:

adding the API path as both URLs, token as both tokens and id as id does not seem to work as the application crashes on launch without being able to read the message.
TypeError: Cannot read property 'message' of undefined in the store front api hooks.

from commerce.

techrangle avatar techrangle commented on May 1, 2024 1

Hi
Where can I find these settings?
BIGCOMMERCE_STOREFRONT_API_URL=
BIGCOMMERCE_STOREFRONT_API_TOKEN=
BIGCOMMERCE_STORE_API_URL=
BIGCOMMERCE_STORE_API_TOKEN=
BIGCOMMERCE_STORE_API_CLIENT_ID=
After creating an API user I get a file with:
ACCESS TOKEN: is BIGCOMMERCE_STORE_API_TOKEN
CLIENT ID:
CLIENT SECRET:
NAME:
API PATH:
adding the API path as both URLs, token as both tokens and id as id does not seem to work as the application crashes on launch without being able to read the message.
TypeError: Cannot read property 'message' of undefined in the store front api hooks.

You just need to find these values from bigcommerce there are two options one is stencil and api token under advanced settings in big commerce dashboard copy from there and set values here then it works

ACCESS TOKEN: is BIGCOMMERCE_STORE_API_TOKEN

from commerce.

bryandandan avatar bryandandan commented on May 1, 2024 1

Can anybody tell me where the env values are actually being used/called in the code?

from commerce.

techrangle avatar techrangle commented on May 1, 2024

save this in .env.local file on the root project.

from commerce.

techrangle avatar techrangle commented on May 1, 2024

Hi
Where can I find these settings?

BIGCOMMERCE_STOREFRONT_API_URL=
BIGCOMMERCE_STOREFRONT_API_TOKEN=
BIGCOMMERCE_STORE_API_URL=
BIGCOMMERCE_STORE_API_TOKEN=
BIGCOMMERCE_STORE_API_CLIENT_ID=

After creating an API user I get a file with:
ACCESS TOKEN:
CLIENT ID:
CLIENT SECRET:
NAME:
API PATH:

adding the API path as both URLs, token as both tokens and id as id does not seem to work as the application crashes on launch without being able to read the message.
TypeError: Cannot read property 'message' of undefined in the store front api hooks.

You just need to find these values from bigcommerce there are two options one is stencil and api token under advanced settings in big commerce dashboard copy from there and set values here then it works

from commerce.

techrangle avatar techrangle commented on May 1, 2024

Hi
Where can I find these settings?
BIGCOMMERCE_STOREFRONT_API_URL=
BIGCOMMERCE_STOREFRONT_API_TOKEN=
BIGCOMMERCE_STORE_API_URL=
BIGCOMMERCE_STORE_API_TOKEN=
BIGCOMMERCE_STORE_API_CLIENT_ID=
After creating an API user I get a file with:
ACCESS TOKEN: is BIGCOMMERCE_STORE_API_TOKEN
CLIENT ID:
CLIENT SECRET:
NAME:
API PATH:
adding the API path as both URLs, token as both tokens and id as id does not seem to work as the application crashes on launch without being able to read the message.
TypeError: Cannot read property 'message' of undefined in the store front api hooks.

You just need to find these values from bigcommerce there are two options one is stencil and api token under advanced settings in big commerce dashboard copy from there and set values here then it works

from commerce.

techrangle avatar techrangle commented on May 1, 2024

The store front api and url you will get from stencil that means front end api under advanced settings get api token dropdown.

from commerce.

Rando1993 avatar Rando1993 commented on May 1, 2024

1+13+[Data]>com_droid_httph://**+access=rum+HTML+downloading droid_device{148+mb}°=
Access_™granted
//UI*+=loading_//infu_+device🦇🔯∆=//@@@@@@@@@@+++++>>>>>copy paste+////🔯✡️☯️🎭_1.2.3.4_+(data)+com_droid.//access cam+droid+space data_+download [>lost date+of+the+device_//droid access_granted_//UI-+granted*_+//start

from commerce.

eltel avatar eltel commented on May 1, 2024

Hi
Where can I find these settings?
BIGCOMMERCE_STOREFRONT_API_URL=
BIGCOMMERCE_STOREFRONT_API_TOKEN=
BIGCOMMERCE_STORE_API_URL=
BIGCOMMERCE_STORE_API_TOKEN=
BIGCOMMERCE_STORE_API_CLIENT_ID=
After creating an API user I get a file with:
ACCESS TOKEN: is BIGCOMMERCE_STORE_API_TOKEN
CLIENT ID:
CLIENT SECRET:
NAME:
API PATH:
adding the API path as both URLs, token as both tokens and id as id does not seem to work as the application crashes on launch without being able to read the message.
TypeError: Cannot read property 'message' of undefined in the store front api hooks.

You just need to find these values from bigcommerce there are two options one is stencil and api token under advanced settings in big commerce dashboard copy from there and set values here then it works

ACCESS TOKEN: is BIGCOMMERCE_STORE_API_TOKEN

Thanks for the help - so many inconsistencies in the variable names here it's giving me a real headache!

from commerce.

eltel avatar eltel commented on May 1, 2024

Can anybody tell me how to get the BIGCOMMERCE_STOREFRONT_API_TOKEN - the instructions are non-existent on the BigCommerce site - there is some obscure reference to making an API call to get the token here:
https://developer.bigcommerce.com/api-reference/store-management/tokens/api-token/createtoken

  • but no instructions on how :(

Thanks

Terry

from commerce.

eltel avatar eltel commented on May 1, 2024

So, after linking via the Vercel CLI -
vercel env pull .env.local

  • worked for me, however, the CLIENT ID and BIGCOMMERCE_STORE_API_TOKEN are different from the ones downloaded from BigCommerce - I swapped them out for the ones I downloaded from Bigcommerce and yes, it's still working locally - however, I've got a feeling that the BIGCOMMERCE_STOREFRONT_API_TOKEN (the main variable I had trouble getting due to the atrocious docs on BC) is wrong and may cause problems in the future. It is now working locally for me - but for how long I'm not sure - hope this helps someone, if at least temporarily.

from commerce.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.