Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

env file #30

Closed
enarankhuu opened this issue Oct 28, 2020 · 17 comments · Fixed by #31
Closed

env file #30

enarankhuu opened this issue Oct 28, 2020 · 17 comments · Fixed by #31

Comments

@enarankhuu
Copy link

Which text insert into .env.local? I dunno

@techrangle
Copy link

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= 

@techrangle
Copy link

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

@FredvanRijswijk
Copy link

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

@Strutsagget
Copy link

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.

@Rando1993
Copy link

https:>UI_+bot+link//api_run

@techrangle
Copy link

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

@techrangle
Copy link

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

@techrangle
Copy link

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

@techrangle
Copy link

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

@Rando1993
Copy link

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

@Strutsagget
Copy link

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?

@KasiaSmolarska
Copy link

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?

@rmaximoc
Copy link

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

@bryandandan
Copy link

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

@eltel
Copy link

eltel commented Mar 25, 2021

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!

@eltel
Copy link

eltel commented Mar 25, 2021

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

@eltel
Copy link

eltel commented Mar 25, 2021

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.

persi123 pushed a commit to persi123/commerce that referenced this issue Oct 21, 2021
[CHEC-585] - Deleted order image placeholder as no media endpoint in obj
Wkasel pushed a commit to DSCO-Co/poochie that referenced this issue Apr 24, 2023
…rice

changed FREE shipping to Calculated at checkout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants