Skip to content

Commit a3925b5

Browse files
cullylarsonTimer
authored andcommitted
Fix mistakes in the Custom Server doc (#9930)
1 parent 4a7a28a commit a3925b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/advanced-features/custom-server.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ description: Start a Next.js app programmatically using a custom server.
1717

1818
Typically you start your next server with `next start`. It's possible, however, to start a server 100% programmatically in order to use custom route patterns.
1919

20-
> Before deciding to use a custom a custom server please keep in mind that it should only be used when the integrated router of Next.js can't meet your app requirements. A custom server will remove important performance optimizations, like **serverless functions** and **[Automatic Static Optimization](/docs/advanced-features/automatic-static-optimization.md).**
20+
> Before deciding to use a custom server please keep in mind that it should only be used when the integrated router of Next.js can't meet your app requirements. A custom server will remove important performance optimizations, like **serverless functions** and **[Automatic Static Optimization](/docs/advanced-features/automatic-static-optimization.md).**
2121
2222
Take a look at the following example of a custom server:
2323

@@ -75,7 +75,7 @@ const app = next({})
7575

7676
The above `next` import is a function that receives an object with the following options:
7777

78-
- `dev`: `Boolean` - Whether or not to launch Next.js in dev mode. Defaults `false`
78+
- `dev`: `Boolean` - Whether or not to launch Next.js in dev mode. Defaults to `false`
7979
- `dir`: `String` - Location of the Next.js project. Defaults to `'.'`
8080
- `quiet`: `Boolean` - Hide error messages containing server information. Defaults to `false`
8181
- `conf`: `object` - The same object you would use in [next.config.js](/docs/api-reference/next.config.js/introduction.md). Defaults to `{}`
@@ -86,7 +86,7 @@ The returned `app` can then be used to let Next.js handle requests as required.
8686

8787
By default, `Next` will serve each file in the `pages` folder under a pathname matching the filename. If your project uses a custom server, this behavior may result in the same content being served from multiple paths, which can present problems with SEO and UX.
8888

89-
To disable this behavior & prevent routing based on files in `pages`, open `next.config.js` and disable the `useFileSystemPublicRoutes` config:
89+
To disable this behavior and prevent routing based on files in `pages`, open `next.config.js` and disable the `useFileSystemPublicRoutes` config:
9090

9191
```js
9292
module.exports = {

0 commit comments

Comments
 (0)