From 100c5a60a6fb4bdcdb42fa878b084476b272a4dc Mon Sep 17 00:00:00 2001 From: Mil4n0r Date: Fri, 26 Jul 2024 11:55:59 +0200 Subject: [PATCH] Fix next version --- apps/website/next.config.js | 4 ++-- .../principles/typography/code/TypographyCodePage.tsx | 8 ++++---- scripts/release-website.js | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/apps/website/next.config.js b/apps/website/next.config.js index 9fbd271ae1..2f78fb96bd 100644 --- a/apps/website/next.config.js +++ b/apps/website/next.config.js @@ -13,8 +13,8 @@ module.exports = { return config; }, reactStrictMode: true, - assetPrefix: process.env.NODE_ENV === "production" ? `/halstack/${process.env.SITE_VERSION}` : undefined, - basePath: process.env.NODE_ENV === "production" ? `/halstack/${process.env.SITE_VERSION}` : undefined, + assetPrefix: process.env.NODE_ENV === "production" ? `/halstack/${process.env.NEXT_PUBLIC_SITE_VERSION}` : undefined, + basePath: process.env.NODE_ENV === "production" ? `/halstack/${process.env.NEXT_PUBLIC_SITE_VERSION}` : undefined, transpilePackages: [ "@cloudscape-design/components", "@cloudscape-design/component-toolkit", diff --git a/apps/website/screens/principles/typography/code/TypographyCodePage.tsx b/apps/website/screens/principles/typography/code/TypographyCodePage.tsx index 01caa9cfcc..d79cd5b7fa 100644 --- a/apps/website/screens/principles/typography/code/TypographyCodePage.tsx +++ b/apps/website/screens/principles/typography/code/TypographyCodePage.tsx @@ -14,19 +14,19 @@ const sections = [ title: "Examples", subSections: [ { - title: "Heading", + title: "Heading basic usage", content: , }, { - title: "Paragraph", + title: "Paragraph basic usage", content: , }, { - title: "Bulleted list", + title: "Bulleted list basic usage", content: , }, { - title: "Typography", + title: "Typography basic usage", content: , }, ], diff --git a/scripts/release-website.js b/scripts/release-website.js index 9e9b95153d..e551bdb27f 100644 --- a/scripts/release-website.js +++ b/scripts/release-website.js @@ -56,7 +56,7 @@ const buildSite = (version) => { return new Promise((resolve, reject) => { console.log(`Building site with version ${version}`); exec( - `cd apps/website && SITE_VERSION=${version} npm run build`, + `cd apps/website && NEXT_PUBLIC_SITE_VERSION=${version} npm run build`, (error, stdout, stderr) => { if (error) { throw new Error(error.message);