Skip to content

Commit

Permalink
fix: Fixes config tokens (#284)
Browse files Browse the repository at this point in the history
* fix: Fixes config tokens

* chore: Adds changeset
  • Loading branch information
amir-zahedi authored Jan 21, 2025
1 parent 00693b0 commit 4c477d2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/moody-dolphins-sniff.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'gdu': patch
---

GDU: Fixed global prod config tokens
3 changes: 1 addition & 2 deletions packages/gdu/commands/global-configs/config-tenants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as dotenv from 'dotenv';

import { getTokens } from '../../lib/globalConfigs';

const envs = ['uat', 'preprod', 'dev', 'prod', 'test', 'tokens', 'shared'];
const envs = ['uat', 'preprod', 'dev', 'prod', 'test', 'tokens'];
const tenants = ['au', 'nz', 'au-legacy', 'global'];
type ENV = (typeof envs)[number];
type TENANT = (typeof tenants)[number] ;
Expand All @@ -17,7 +17,6 @@ const environmentOffsets: Record<string, number> = {
preprod: 3,
prod: 1,
tokens: 0,
shared: 0,
};

const scopeOffsets: Record<string, number> = {
Expand Down
4 changes: 3 additions & 1 deletion packages/gdu/commands/global-configs/config-tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as dotenv from 'dotenv';

import { getTokens } from '../../lib/globalConfigs';

const envs = ['uat', 'preprod', 'dev', 'prod_build', 'test', 'tokens', 'shared'];
const envs = ['uat', 'preprod', 'dev', 'prod_build', 'test', 'tokens'];
const tenants = ['au', 'nz', 'au-legacy', 'global'];
type ENV = (typeof envs)[number];
type TENANT = (typeof tenants)[number] ;
Expand Down Expand Up @@ -95,6 +95,8 @@ export default async () => {
tenants.forEach((tenant: TENANT) => {
generateTokens(env, tenant);
});
} else {
generateTokens(env);
}
});
console.log('Global config tokens finished');
Expand Down

0 comments on commit 4c477d2

Please sign in to comment.