log the json url for testing

This commit is contained in:
Efrain Rochin Aramburo 2023-02-09 12:18:12 -07:00
parent 33dce23415
commit 5b219a55b3

View File

@ -169,6 +169,7 @@ const getNextCache = async (username: string, month: string): Promise<EventBusyD
const { NEXT_PUBLIC_WEBAPP_URL, NODE_ENV } = process.env;
const cacheDir = `${NODE_ENV === "development" ? NODE_ENV : process.env.BUILD_ID}`;
const baseUrl = `${NEXT_PUBLIC_WEBAPP_URL}/_next/data/${cacheDir}/en`;
console.log(`${baseUrl}/${username}/calendar-cache/${month}.json?user=${username}&month=${month}`);
localCache = await fetch(
`${baseUrl}/${username}/calendar-cache/${month}.json?user=${username}&month=${month}`
)