Nuxt

Articles in the category Nuxt.
Nuxt Tip: Difference Between useFetch and event.$fetch Image

Nuxt Tip: Difference Between useFetch and event.$fetch

Understand the key distinction between useFetch and event.
Nuxt Tip: Accessing Pinia Store in Production Build Image

Nuxt Tip: Accessing Pinia Store in Production Build

A concise guide on how to access your Pinia store within a Nuxt production build.
Nuxt Tip: Managing Page Load States With useLoadingIndicator Image

Nuxt Tip: Managing Page Load States With useLoadingIndicator

Learn how to use the useLoadingIndicator composable in Nuxt to access and manage the loading state of your app's pages.
Nuxt Tip: Parallel Fetch Requests Image

Nuxt Tip: Parallel Fetch Requests

Learn to wield useAsyncData along with Promise.
Nuxt Tip: Fetch Data on the Server Before App Start Image

Nuxt Tip: Fetch Data on the Server Before App Start

Learn how to pre-fetch data on the server before app start in Nuxt 3+ to improve load times and user experience.
Nuxt Tip: Validate Data in Your Server Routes Image

Nuxt Tip: Validate Data in Your Server Routes

Ensure that your data are valid and safe in your Nuxt server routes before processing them.
Nuxt Tip: Change Status Code of the Response Image

Nuxt Tip: Change Status Code of the Response

`setResponseStatus` is a Nuxt composable to set the status code and (and optionally the status message) of the response.
Nuxt Tip: Run Code Once During SSR or CSR Image

Nuxt Tip: Run Code Once During SSR or CSR

Since Nuxt 3.
Nuxt Tip: Use Environment-Specific Configurations Image

Nuxt Tip: Use Environment-Specific Configurations

It sometimes happens that you need to have different configurations for different environments in your Nuxt.
Nuxt Tip: How Nuxt Uses Nitro, h3 and ofetch Internally Image

Nuxt Tip: How Nuxt Uses Nitro, h3 and ofetch Internally

Nitro, h3 and ofetch are UnJS packages that are used to power the Nuxt 3 server engine.