Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Steven <steven@ceriously.com>
  • Loading branch information
ijjk and styfle committed Apr 5, 2022
1 parent d76b2b4 commit 03161f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion errors/import-next.md
Expand Up @@ -4,7 +4,7 @@

Somewhere in your application, you imported `next` directly which is only meant to be used with legacy custom servers.

You should not need to import `next` inside of pages or components.
You should not import `next` inside of pages or components.

#### Possible Ways to Fix It

Expand Down
2 changes: 1 addition & 1 deletion test/production/required-server-files/pages/gssp.js
@@ -1,7 +1,7 @@
import fs from 'fs'
import path from 'path'
// eslint-disable-next-line
import next from 'next'
import next from 'next' // force a warning during `next build`
import { useRouter } from 'next/router'

export async function getServerSideProps({ res }) {
Expand Down

0 comments on commit 03161f3

Please sign in to comment.