Код: Выделить всё
@font-face {
font-family: "Adobe Caslon Pro";
src: url("/static/fonts/ACaslonPro-Regular.otf") format("opentype");
font-style: medium;
font-display: swap;
}
Код: Выделить всё
import "../styles/globals.css";
function MyApp({ Component, pageProps }) {
return ;
}
export default MyApp;
Код: Выделить всё
import Document, { Html, Head, Main, NextScript } from "next/document";
class MyDocument extends Document {
static async getInitialProps(ctx) {
const initialProps = await Document.getInitialProps(ctx);
return { ...initialProps };
}
render() {
return (
);
}
}
export default MyDocument;
Подробнее здесь: https://stackoverflow.com/questions/701 ... in-next-js
Мобильная версия