-
Notifications
You must be signed in to change notification settings - Fork 354
Catalyst 1744 refactor configuration variables #2866
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
base: canary
Are you sure you want to change the base?
Changes from all commits
9fb5729
d2751b8
bd5c88e
b2d95bb
1f8c78b
075d2ae
ff50393
7475d6f
e0734da
b2e6a61
f90f9f5
98d634b
f9027c6
5442ed1
6091753
4671ec0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -54,3 +54,5 @@ build-config.json | |
| # OpenNext | ||
| .open-next | ||
| .wrangler | ||
|
|
||
| .bigcommerce | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -306,19 +306,19 @@ test('--dry-run skips upload and deployment', async () => { | |
|
|
||
| test('reads from env options', () => { | ||
| const envVariables = parseEnvironmentVariables([ | ||
| 'BIGCOMMERCE_STORE_HASH=123', | ||
| 'BIGCOMMERCE_STOREFRONT_TOKEN=456', | ||
| 'CATALYST_STORE_HASH=123', | ||
| 'CATALYST_ACCESS_TOKEN=456', | ||
| ]); | ||
|
|
||
| expect(envVariables).toEqual([ | ||
| { | ||
| type: 'secret', | ||
| key: 'BIGCOMMERCE_STORE_HASH', | ||
| key: 'CATALYST_STORE_HASH', | ||
| value: '123', | ||
| }, | ||
| { | ||
| type: 'secret', | ||
| key: 'BIGCOMMERCE_STOREFRONT_TOKEN', | ||
| key: 'CATALYST_ACCESS_TOKEN', | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Was this intentional, to rename
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I actually just realized I made that jump. I think I just had
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wait ignore the above lol I get it now. This is supposed to be testing parsing secret runtime variables. Great catch! |
||
| value: '456', | ||
| }, | ||
| ]); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this intentional, to rename
BIGCOMMERCE_STOREFRONT_TOKENtoCATALYST_ACCESS_TOKEN?