Skip to content

Commit

Permalink
fix: only test supported versions of Node and fix type import
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisBrunner committed Aug 31, 2022
1 parent 0dc9303 commit 23c9166
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Expand Up @@ -8,13 +8,13 @@ jobs:

strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 19.x, 20.x, latest]
node-version: [14, 16, 18, latest]

steps:
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

Expand Down
4 changes: 1 addition & 3 deletions pages/_document.tsx
Expand Up @@ -2,9 +2,7 @@ import {AppProps} from 'next/app'
import Document, {DocumentContext, DocumentInitialProps} from 'next/document'
import {ServerStyleSheet} from 'styled-components'
import {ServerStyleSheets} from '@material-ui/core/styles'

// FIXME: find a better import?
import type {AppType, ComponentsEnhancer, RenderPageResult} from 'next/dist/next-server/lib/utils'
import {AppType, ComponentsEnhancer, RenderPageResult} from 'next/dist/shared/lib/utils'

export default class MyDocument extends Document {
static async getInitialProps(ctx: DocumentContext): Promise<DocumentInitialProps> {
Expand Down

1 comment on commit 23c9166

@vercel
Copy link

@vercel vercel bot commented on 23c9166 Aug 31, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.