Font does not exist in PROD
Unanswered
Britannia Petite posted this in #help-forum
Britannia PetiteOP
Hi. My fonts were working until last deplyment both on prod and dev.
Now my fonts are always present in dev env but on prod they are not loaded at all.
I do
and in layout i have
As a result, when I inspect elements in dev mode i find
In prod i have
Now my fonts are always present in dev env but on prod they are not loaded at all.
I do
import { Montserrat } from 'next/font/google'
export const montserrat = Montserrat({
subsets: ['latin'],
})and in layout i have
<html className={montserrat.className}>As a result, when I inspect elements in dev mode i find
<html class="__className_b1da2a">
# and following
.__className_b1da2a {
font-family: '__Montserrat_b1da2a', '__Montserrat_Fallback_b1da2a';
font-style: normal;
}In prod i have
<html class="__className_b1da2a"> but there is no this class like above and font-family defined nor font-style.1 Reply
I think I have the same issue