Skip to content

Commit

Permalink
Rename tenant pdnd to interop (#375)
Browse files Browse the repository at this point in the history
Co-authored-by: Simone Salsi <[email protected]>
  • Loading branch information
simosalsi and Simone Salsi authored Jul 23, 2024
1 parent 94b2e8b commit 577533e
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 20 deletions.
5 changes: 5 additions & 0 deletions .changeset/strong-birds-add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"nextjs-website": patch
---

Rename tenant pdnd to interop
4 changes: 2 additions & 2 deletions apps/nextjs-website/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ APPIO_STRAPI_API_BASE_URL=appioStrapiToken
APPIO_STRAPI_API_TOKEN=appioStrapiApiBaseUrl
FIRMA_STRAPI_API_BASE_URL=firmaStrapiToken
FIRMA_STRAPI_API_TOKEN=firmaStrapiApiBaseUrl
PDND_STRAPI_API_BASE_URL=pdndStrapiToken
PDND_STRAPI_API_TOKEN=pdndStrapiApiBaseUrl
INTEROP_STRAPI_API_BASE_URL=interopStrapiToken
INTEROP_STRAPI_API_TOKEN=interopStrapiApiBaseUrl
ENVIRONMENT=demo
PREVIEW_MODE=true
PREVIEW_TOKEN=MY_SECRET_TOKEN
6 changes: 3 additions & 3 deletions apps/nextjs-website/src/AppEnv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ const ConfigCodec = t.type({
APPIO_STRAPI_API_BASE_URL: t.string,
FIRMA_STRAPI_API_TOKEN: t.string,
FIRMA_STRAPI_API_BASE_URL: t.string,
PDND_STRAPI_API_TOKEN: t.string,
PDND_STRAPI_API_BASE_URL: t.string,
INTEROP_STRAPI_API_TOKEN: t.string,
INTEROP_STRAPI_API_BASE_URL: t.string,
ENVIRONMENT: t.union([
t.literal('demo'),
t.literal('send'),
t.literal('appio'),
t.literal('firma'),
t.literal('pdnd'),
t.literal('interop'),
]),
PREVIEW_MODE: t.union([t.string, t.undefined]),
PREVIEW_TOKEN: t.union([t.string, t.undefined]),
Expand Down
4 changes: 2 additions & 2 deletions apps/nextjs-website/src/lib/fetch/__tests__/footer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ const makeTestAppEnv = () => {
APPIO_STRAPI_API_TOKEN: 'appioStrapiApiBaseUrl',
FIRMA_STRAPI_API_BASE_URL: 'firmaStrapiToken',
FIRMA_STRAPI_API_TOKEN: 'firmaStrapiApiBaseUrl',
PDND_STRAPI_API_BASE_URL: 'firmaStrapiToken',
PDND_STRAPI_API_TOKEN: 'firmaStrapiApiBaseUrl',
INTEROP_STRAPI_API_BASE_URL: 'interopStrapiToken',
INTEROP_STRAPI_API_TOKEN: 'interopStrapiApiBaseUrl',
ENVIRONMENT: 'demo',
PREVIEW_MODE: undefined,
PREVIEW_TOKEN: undefined,
Expand Down
4 changes: 2 additions & 2 deletions apps/nextjs-website/src/lib/fetch/__tests__/header.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ const makeTestAppEnv = () => {
APPIO_STRAPI_API_TOKEN: 'appioStrapiApiBaseUrl',
FIRMA_STRAPI_API_BASE_URL: 'firmaStrapiToken',
FIRMA_STRAPI_API_TOKEN: 'firmaStrapiApiBaseUrl',
PDND_STRAPI_API_BASE_URL: 'firmaStrapiToken',
PDND_STRAPI_API_TOKEN: 'firmaStrapiApiBaseUrl',
INTEROP_STRAPI_API_BASE_URL: 'interopStrapiToken',
INTEROP_STRAPI_API_TOKEN: 'interopStrapiApiBaseUrl',
ENVIRONMENT: 'demo',
PREVIEW_MODE: undefined,
PREVIEW_TOKEN: undefined,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ const makeTestAppEnv = () => {
APPIO_STRAPI_API_TOKEN: 'appioStrapiApiBaseUrl',
FIRMA_STRAPI_API_BASE_URL: 'firmaStrapiToken',
FIRMA_STRAPI_API_TOKEN: 'firmaStrapiApiBaseUrl',
PDND_STRAPI_API_BASE_URL: 'firmaStrapiToken',
PDND_STRAPI_API_TOKEN: 'firmaStrapiApiBaseUrl',
INTEROP_STRAPI_API_BASE_URL: 'interopStrapiToken',
INTEROP_STRAPI_API_TOKEN: 'interopStrapiApiBaseUrl',
ENVIRONMENT: 'demo',
PREVIEW_MODE: undefined,
PREVIEW_TOKEN: undefined,
Expand Down
4 changes: 2 additions & 2 deletions apps/nextjs-website/src/lib/fetch/__tests__/preHeader.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ const makeTestAppEnv = () => {
APPIO_STRAPI_API_TOKEN: 'appioStrapiApiBaseUrl',
FIRMA_STRAPI_API_BASE_URL: 'firmaStrapiToken',
FIRMA_STRAPI_API_TOKEN: 'firmaStrapiApiBaseUrl',
PDND_STRAPI_API_BASE_URL: 'firmaStrapiToken',
PDND_STRAPI_API_TOKEN: 'firmaStrapiApiBaseUrl',
INTEROP_STRAPI_API_BASE_URL: 'interopStrapiToken',
INTEROP_STRAPI_API_TOKEN: 'interopStrapiApiBaseUrl',
ENVIRONMENT: 'demo',
PREVIEW_MODE: undefined,
PREVIEW_TOKEN: undefined,
Expand Down
4 changes: 2 additions & 2 deletions apps/nextjs-website/src/lib/fetch/__tests__/preview.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ const makeTestAppEnv = () => {
APPIO_STRAPI_API_TOKEN: 'appioStrapiApiBaseUrl',
FIRMA_STRAPI_API_BASE_URL: 'firmaStrapiToken',
FIRMA_STRAPI_API_TOKEN: 'firmaStrapiApiBaseUrl',
PDND_STRAPI_API_BASE_URL: 'firmaStrapiToken',
PDND_STRAPI_API_TOKEN: 'firmaStrapiApiBaseUrl',
INTEROP_STRAPI_API_BASE_URL: 'interopStrapiToken',
INTEROP_STRAPI_API_TOKEN: 'interopStrapiApiBaseUrl',
ENVIRONMENT: 'demo',
PREVIEW_MODE: undefined,
PREVIEW_TOKEN: undefined,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ const makeTestAppEnv = () => {
APPIO_STRAPI_API_TOKEN: 'appioStrapiApiBaseUrl',
FIRMA_STRAPI_API_BASE_URL: 'firmaStrapiToken',
FIRMA_STRAPI_API_TOKEN: 'firmaStrapiApiBaseUrl',
PDND_STRAPI_API_BASE_URL: 'firmaStrapiToken',
PDND_STRAPI_API_TOKEN: 'firmaStrapiApiBaseUrl',
INTEROP_STRAPI_API_BASE_URL: 'interopStrapiToken',
INTEROP_STRAPI_API_TOKEN: 'interopStrapiApiBaseUrl',
ENVIRONMENT: 'demo',
PREVIEW_MODE: undefined,
PREVIEW_TOKEN: undefined,
Expand Down
6 changes: 3 additions & 3 deletions apps/nextjs-website/src/lib/fetch/tenantApiData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ export const extractTenantStrapiApiData = (
baseUrl: strapiData.FIRMA_STRAPI_API_BASE_URL,
token: strapiData.FIRMA_STRAPI_API_TOKEN,
};
case 'pdnd':
case 'interop':
return {
baseUrl: strapiData.PDND_STRAPI_API_BASE_URL,
token: strapiData.PDND_STRAPI_API_TOKEN,
baseUrl: strapiData.INTEROP_STRAPI_API_BASE_URL,
token: strapiData.INTEROP_STRAPI_API_TOKEN,
};
}
};

0 comments on commit 577533e

Please sign in to comment.