Skip to content
This repository has been archived by the owner on Dec 12, 2017. It is now read-only.

Setting cooking env: remember to prepend process.env. #181

Closed
yipcma opened this issue Jun 3, 2017 · 4 comments
Closed

Setting cooking env: remember to prepend process.env. #181

yipcma opened this issue Jun 3, 2017 · 4 comments

Comments

@yipcma
Copy link

yipcma commented Jun 3, 2017

cooking version

1.5.3

What is Expected?

setting env like any other variables should work equally well

What is actually happening?

one certain variable is not set correctly and results in undefined. Specifically, it is named ACCESS_TOKEN or PAGE_ACCESS_TOKEN with a long string
e.g.,
'EAAQEN9nJAGYBAFk9N2cOX9ZCGRrQWERTfG5K5ZCtpp7kKJv0Pou200wPdIoit4tK44ATL6ZAA8twXhcDJiZBANCJhApVx1YlgJVnNsUY1dx6S71oPZBEulDahF4Dl81v8w123wWdLo7LS6h8oZC6Pe0lkf1XXw9dptEArZBqKUo3rowZDZD'

@QingWei-Li
Copy link
Contributor

Can you provide a demo please?

@yipcma
Copy link
Author

yipcma commented Jun 4, 2017

it just doesn't set the string. all my other variables are set , just not this particular one with a long string.... what kind of demo would you like to see?

@QingWei-Li
Copy link
Contributor

A repo that can reproduce the issue.

@yipcma yipcma changed the title strange bug on setting cooking env: access_token undefined Setting cooking env: remember to prepend process.env. Jun 4, 2017
@yipcma
Copy link
Author

yipcma commented Jun 4, 2017

ok, silly me, everything needs process.env, as opposed to the DefinePlugin doc where everything is naked...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants