1.1.4 • Published 5 years ago
@atmc/ssr v1.1.4
@atmc/ssr
Next.js SSR Implementation
Install the package:
yarn add @atmc/ssr
ornpm install @atmc/ssr
Configure the pages/_document.js
import { getStyleElement } from "@atmc/ssr";
export default class CustomDocument extends Document {
static async getInitialProps({ renderPage }) {
const page = await renderPage();
return {
...page,
styles: getStyleElement(),
};
}
}
Create styles with @atmc/ssr instead @atmc/css.
Done!