-
hey, I am using I mean smth like: export const getServerSideProps: GetServerSideProps = async ({ req, locale }) => {
const fetchAcademy = await fetch(`api.test/academy`, {
method: "POST",
headers: {
"Content-Type": "application/json"
}
});
const oldVersion = req.cookies["oldVersion"];
const response = await fetchAcademy.json();
if (oldVersion !== response.version) {
//force delete old locales_cache
//update oldVersion cookie
}
return {
props: {
//and anyway here the locales will be cached again because noting found in `loadPath`
...(await serverSideTranslations(
locale ?? i18nextConfig.i18n.defaultLocale,
["common", "chapter_contents", "validation"],
i18nextConfig
))
}
};
}; I could just simply do: does anyone have a solution for this issue? or is there any best practice and better approach to solve it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Deleting (unlinking) is the best workaround for this use case |
Beta Was this translation helpful? Give feedback.
Deleting (unlinking) is the best workaround for this use case