Skip to content

Commit

Permalink
Update server output path in static optimization docs (#21910)
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk authored Feb 6, 2021
1 parent 984a78d commit 958bd6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/advanced-features/automatic-static-optimization.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ During prerendering, the router's `query` object will be empty since we do not h
`next build` will emit `.html` files for statically optimized pages. For example, the result for the page `pages/about.js` would be:

```bash
.next/server/static/${BUILD_ID}/about.html
.next/server/pages/about.html
```

And if you add `getServerSideProps` to the page, it will then be JavaScript, like so:

```bash
.next/server/static/${BUILD_ID}/about.js
.next/server/pages/about.js
```

## Caveats
Expand Down

0 comments on commit 958bd6c

Please sign in to comment.