Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs] Added related links to next.config.js #10174

Merged
merged 2 commits into from Jan 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/advanced-features/custom-app.md
Expand Up @@ -48,7 +48,7 @@ For more information on what to do next, we recommend the following sections:
<div class="card">
<a href="/docs/advanced-features/automatic-static-optimization.md">
<b>Automatic Static Optimization:</b>
<small>Learn more about how Next.js automatically optimizes your pages.</small>
<small>Next.js automatically optimizes your app to be static HTML whenever possible. Learn how it works here.</small>
</a>
</div>

Expand Down
16 changes: 16 additions & 0 deletions docs/api-reference/next.config.js/build-target.md
Expand Up @@ -27,3 +27,19 @@ module.exports = {
target: 'serverless',
}
```

## Related

<div class="card">
<a href="/docs/api-reference/next.config.js/introduction.md">
<b>Introduction to next.config.js:</b>
<small>Learn more about the configuration file used by Next.js.</small>
</a>
</div>

<div class="card">
<a href="/docs/deployment.md">
<b>Deployment:</b>
<small>Compile and deploy your Next.js app to production.</small>
</a>
</div>
Expand Up @@ -18,3 +18,19 @@ module.exports = {
```

Next.js will automatically use your prefix in the scripts it loads, but this has no effect whatsoever on the [public](/docs/basic-features/static-file-serving.md) folder; if you want to serve those assets over a CDN, you'll have to introduce the prefix yourself. One way of introducing a prefix that works inside your components and varies by environment is documented [in this example](https://github.com/zeit/next.js/tree/canary/examples/with-universal-configuration-build-time).

## Related

<div class="card">
<a href="/docs/api-reference/next.config.js/introduction.md">
<b>Introduction to next.config.js:</b>
<small>Learn more about the configuration file used by Next.js.</small>
</a>
</div>

<div class="card">
<a href="/docs/basic-features/static-file-serving.md">
<b>Static File Serving:</b>
<small>Serve static files, like images, in the public directory.</small>
</a>
</div>
9 changes: 9 additions & 0 deletions docs/api-reference/next.config.js/compression.md
Expand Up @@ -13,3 +13,12 @@ module.exports = {
compress: false,
}
```

## Related

<div class="card">
<a href="/docs/api-reference/next.config.js/introduction.md">
<b>Introduction to next.config.js:</b>
<small>Learn more about the configuration file used by Next.js.</small>
</a>
</div>
Expand Up @@ -18,3 +18,12 @@ module.exports = {
},
}
```

## Related

<div class="card">
<a href="/docs/api-reference/next.config.js/introduction.md">
<b>Introduction to next.config.js:</b>
<small>Learn more about the configuration file used by Next.js.</small>
</a>
</div>
Expand Up @@ -16,3 +16,12 @@ module.exports = {
},
}
```

## Related

<div class="card">
<a href="/docs/api-reference/next.config.js/introduction.md">
<b>Introduction to next.config.js:</b>
<small>Learn more about the configuration file used by Next.js.</small>
</a>
</div>
9 changes: 9 additions & 0 deletions docs/api-reference/next.config.js/custom-page-extensions.md
Expand Up @@ -13,3 +13,12 @@ module.exports = {
pageExtensions: ['mdx', 'jsx', 'js', 'ts', 'tsx'],
}
```

## Related

<div class="card">
<a href="/docs/api-reference/next.config.js/introduction.md">
<b>Introduction to next.config.js:</b>
<small>Learn more about the configuration file used by Next.js.</small>
</a>
</div>
9 changes: 9 additions & 0 deletions docs/api-reference/next.config.js/custom-webpack-config.md
Expand Up @@ -65,3 +65,12 @@ module.exports = {
},
}
```

## Related

<div class="card">
<a href="/docs/api-reference/next.config.js/introduction.md">
<b>Introduction to next.config.js:</b>
<small>Learn more about the configuration file used by Next.js.</small>
</a>
</div>
Expand Up @@ -13,3 +13,12 @@ module.exports = {
generateEtags: false,
}
```

## Related

<div class="card">
<a href="/docs/api-reference/next.config.js/introduction.md">
<b>Introduction to next.config.js:</b>
<small>Learn more about the configuration file used by Next.js.</small>
</a>
</div>
9 changes: 9 additions & 0 deletions docs/api-reference/next.config.js/disabling-x-powered-by.md
Expand Up @@ -11,3 +11,12 @@ module.exports = {
poweredByHeader: false,
}
```

## Related

<div class="card">
<a href="/docs/api-reference/next.config.js/introduction.md">
<b>Introduction to next.config.js:</b>
<small>Learn more about the configuration file used by Next.js.</small>
</a>
</div>
9 changes: 9 additions & 0 deletions docs/api-reference/next.config.js/environment-variables.md
Expand Up @@ -45,3 +45,12 @@ Will end up being:
```jsx
return <h1>The value of customKey is: {'my-value'}</h1>
```

## Related

<div class="card">
<a href="/docs/api-reference/next.config.js/introduction.md">
<b>Introduction to next.config.js:</b>
<small>Learn more about the configuration file used by Next.js.</small>
</a>
</div>
16 changes: 16 additions & 0 deletions docs/api-reference/next.config.js/exportPathMap.md
Expand Up @@ -66,3 +66,19 @@ module.exports = {
exportTrailingSlash: true,
}
```

## Related

<div class="card">
<a href="/docs/api-reference/next.config.js/introduction.md">
<b>Introduction to next.config.js:</b>
<small>Learn more about the configuration file used by Next.js.</small>
</a>
</div>

<div class="card">
<a href="/docs/advanced-features/static-html-export.md">
<b>Static HTML Export:</b>
<small>Export your Next.js app to static HTML.</small>
</a>
</div>
16 changes: 16 additions & 0 deletions docs/api-reference/next.config.js/ignoring-typescript-errors.md
Expand Up @@ -40,3 +40,19 @@ module.exports = {
},
}
```

## Related

<div class="card">
<a href="/docs/api-reference/next.config.js/introduction.md">
<b>Introduction to next.config.js:</b>
<small>Learn more about the configuration file used by Next.js.</small>
</a>
</div>

<div class="card">
<a href="/docs/basic-features/typescript.md">
<b>TypeScript:</b>
<small>Get started with TypeScript in Next.js.</small>
</a>
</div>
16 changes: 16 additions & 0 deletions docs/api-reference/next.config.js/runtime-configuration.md
Expand Up @@ -52,3 +52,19 @@ function MyImage() {

export default MyImage
```

## Related

<div class="card">
<a href="/docs/api-reference/next.config.js/introduction.md">
<b>Introduction to next.config.js:</b>
<small>Learn more about the configuration file used by Next.js.</small>
</a>
</div>

<div class="card">
<a href="/docs/api-reference/next.config.js/environment-variables.md">
<b>Environment Variables:</b>
<small>Access environment variables in your Next.js application at build time.</small>
</a>
</div>
Expand Up @@ -17,3 +17,12 @@ module.exports = {
Now if you run `next build` Next.js will use `build` instead of the default `.next` folder.

> `distDir` **should not** leave your project directory. For example, `../build` is an **invalid** directory.

## Related

<div class="card">
<a href="/docs/api-reference/next.config.js/introduction.md">
<b>Introduction to next.config.js:</b>
<small>Learn more about the configuration file used by Next.js.</small>
</a>
</div>
Expand Up @@ -17,3 +17,19 @@ module.exports = {
},
}
```

## Related

<div class="card">
<a href="/docs/api-reference/next.config.js/introduction.md">
<b>Introduction to next.config.js:</b>
<small>Learn more about the configuration file used by Next.js.</small>
</a>
</div>

<div class="card">
<a href="/docs/advanced-features/automatic-static-optimization.md">
<b>Automatic Static Optimization:</b>
<small>Next.js automatically optimizes your app to be static HTML whenever possible. Learn how it works here.</small>
</a>
</div>
2 changes: 1 addition & 1 deletion docs/api-routes/introduction.md
Expand Up @@ -71,6 +71,6 @@ For more information on what to do next, we recommend the following sections:
<div class="card">
<a href="/docs/basic-features/typescript.md#api-routes">
<b>TypeScript:</b>
<small>Add TypeScript to your API Routes</small>
<small>Add TypeScript to your API Routes.</small>
</a>
</div>
4 changes: 2 additions & 2 deletions docs/basic-features/pages.md
Expand Up @@ -106,13 +106,13 @@ For more information on what to do next, we recommend the following sections:
<div class="card">
<a href="/docs/routing/introduction.md">
<b>Routing:</b>
<small>Learn more about routing in Next.js</small>
<small>Learn more about routing in Next.js.</small>
</a>
</div>

<div class="card">
<a href="/docs/basic-features/typescript.md#pages">
<b>TypeScript:</b>
<small>Add TypeScript to your pages</small>
<small>Add TypeScript to your pages.</small>
</a>
</div>
2 changes: 1 addition & 1 deletion docs/basic-features/typescript.md
@@ -1,5 +1,5 @@
---
description: Next.js supports TypeScript by default and has built-in types for pages and the API. You can get started with Next.js and TypeScript here.
description: Next.js supports TypeScript by default and has built-in types for pages and the API. You can get started with TypeScript in Next.js here.
---

# TypeScript
Expand Down
4 changes: 2 additions & 2 deletions docs/getting-started.md
Expand Up @@ -73,13 +73,13 @@ For more information on what to do next, we recommend the following sections:
<div class="card">
<a href="/docs/basic-features/pages.md">
<b>Pages:</b>
<small>Learn more about what pages are in Next.js</small>
<small>Learn more about what pages are in Next.js.</small>
</a>
</div>

<div class="card">
<a href="/docs/basic-features/built-in-css-support.md">
<b>CSS Support:</b>
<small>Use the built-in CSS support to add custom styles to your app</small>
<small>Use the built-in CSS support to add custom styles to your app.</small>
</a>
</div>