fix canonical urls

This commit is contained in:
Aarni Halinen
2021-03-28 22:42:59 +03:00
parent 9777d30b38
commit e256f93c7d
20 changed files with 20 additions and 20 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import axios from "axios";
const API_URL = "https://api.dev.sahkoinsinoorikilta.fi/api";
export const getSiteRoot = (): string => process.env.SITE_URL || "http://localhost:3000";
export const getSiteRoot = (): string => process.env.NEXT_PUBLIC_SITE_URL || "http://localhost:3000";
export const getPageUrl = ClientFunction(() => window.location.pathname);
export const getPostRequestLogger = (url: string) => RequestLogger({ url: `${API_URL}/${url}`, method: "post" }, {