일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
- Redux
- API
- REACT
- built in object
- useState
- nextJS
- 기준
- CLASS
- 삶
- web
- express.js
- graphQL
- typeScript
- blockchain
- Props
- hardhat
- Ethereum
- concept
- JavaScript
- solidity
- Interface
- error
- bitcoin
- tailwindcss
- node.js
- CSS
- middleware
- HTML
- evm
- SSR
- Today
- Total
ReasonJun
Next.js : Automatic Static Optimization (ASO) 본문
Automatic Static Optimization (ASO) is a feature of Next.js that automatically pre-renders pages that do not have any blocking data requirements. This means that the pages will be rendered to static HTML at build time, which can improve the initial loading performance of your application.
ASO is enabled by default in Next.js, so you do not need to do anything to use it. However, there are a few things you should keep in mind:
- ASO only works for pages that do not have any blocking data requirements. This means that pages that use getServerSideProps or getInitialProps will not be pre-rendered.
- ASO will not work for pages that are dynamically generated. This means that pages that use useState or useEffect will not be pre-rendered.
If you are using ASO, you should make sure that your pages do not have any blocking data requirements or dynamic content. If you do, you may see a performance penalty.
Here are some of the benefits of using Automatic Static Optimization:
- Improved initial loading performance: ASO can improve the initial loading performance of your application by rendering pages to static HTML at build time.
- Reduced bandwidth usage: ASO can reduce bandwidth usage by only sending the static HTML for pages that are actually requested.
- Better SEO: ASO can improve your SEO by making your pages more accessible to search engines.
If you are looking for a way to improve the performance and SEO of your Next.js application, then you should consider using Automatic Static Optimization.
Here are some of the limitations of Automatic Static Optimization:
- Not all pages can be pre-rendered: ASO only works for pages that do not have any blocking data requirements or dynamic content.
- May not be suitable for all applications: ASO may not be suitable for applications that need to be dynamically generated or that require access to real-time data.
Overall, Automatic Static Optimization is a powerful feature that can be used to improve the performance and SEO of your Next.js application. However, it is important to be aware of the limitations of ASO before you decide to use it.
'Frontend > Next.js' 카테고리의 다른 글
Next.js : Custom App / Document / Error page (0) | 2023.06.21 |
---|---|
Next.js : Absolute Imports and Module Path Aliases (0) | 2023.06.21 |
Next.js : Dynamic Import (Lazy Loading) (0) | 2023.06.20 |
Next.js : Draft Mode (0) | 2023.06.20 |
Next.js : Compiler SWC (Speedy Web Compiler) (0) | 2023.06.20 |