The following code works perfectly when running the project locally and gives me exactly the result I need but for deployment on Render.com doesn't work.
@font-face {
font-family: "Kodchasan";
src: url("/src/assets/fonts/Kodchasan-Light.ttf") format("truetype");
font-weight: normal;
font-style: normal;
}
@import "tailwindcss";
@theme {
--font-kodchasan: Kodchasan, "sans-serif";
}
I tried this but after deployment, it doesn't render correctly. Alternatively, the version below works in deployment, but the styles appear broken:
@tailwind base;
@tailwind components;
@tailwind utilities;
@font-face {
font-family: "Kodchasan";
src: url("/fonts/Kodchasan-Light.ttf") format("truetype");
font-weight: normal;
font-style: normal;
}
body {
font-family: "Kodchasan", sans-serif;
}