Skip to content

Commit

Permalink
fix(spas): use en-US in canonical for Plus docs
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner committed Apr 29, 2024
1 parent 30cfed4 commit d0c7eea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build/spas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,8 @@ export async function buildSPAs(options: {
const file = filepath.replace(dirpath, "");
const page = file.split(".")[0];

const locale = DEFAULT_LOCALE.toLowerCase();
const locale = DEFAULT_LOCALE;
const pathLocale = locale.toLowerCase();
const markdown = fs.readFileSync(filepath, "utf-8");

const frontMatter = frontmatter<DocFrontmatter>(markdown);
Expand All @@ -250,7 +251,7 @@ export async function buildSPAs(options: {
const html = renderPage(url, context);
const outPath = path.join(
BUILD_OUT_ROOT,
locale,
pathLocale,
...slug.split("/"),
page
);
Expand Down

0 comments on commit d0c7eea

Please sign in to comment.