1.1.4 • Published 5 years ago

@atmc/ssr v1.1.4

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

@atmc/ssr

Next.js SSR Implementation

  1. Install the package: yarn add @atmc/ssr or npm install @atmc/ssr

  2. 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(),
    };
  }
}
  1. Create styles with @atmc/ssr instead @atmc/css.

  2. Done!

1.1.4

5 years ago

1.1.3

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

0.2.13

5 years ago

0.2.12

5 years ago

0.2.11

5 years ago

0.2.10

5 years ago

0.2.9

5 years ago

0.2.8

5 years ago

0.2.7

5 years ago

0.2.6

5 years ago

0.2.5

5 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.0

5 years ago