[examples] Updated Nuxt starter to v3 stable (#8928)

This commit is contained in:
Steven Tey
2022-11-17 14:27:02 -06:00
committed by GitHub
parent bef3a4bef2
commit 2cafcdab9d
7 changed files with 4642 additions and 5497 deletions

View File

@@ -1,34 +1,48 @@
# Nuxt.js Example
# Nuxt Example
Deploy your [Nuxt.js](https://nuxtjs.org) project to Vercel with zero configuration.
Deploy your [Nuxt](https://nuxt.com) project to Vercel with zero configuration.
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/vercel/vercel/tree/main/examples/nuxtjs&template=nuxtjs)
_Live Example: https://nuxtjs-template.vercel.app_
Look at the [Nuxt 3 documentation](https://v3.nuxtjs.org) to learn more.
## Setup
Install the dependencies:
Make sure to install the dependencies:
```bash
yarn install
# yarn
yarn
# npm
npm install
# pnpm
pnpm install --shamefully-hoist
```
## Development
## Development Server
Start the development server on http://localhost:3000:
Start the development server on http://localhost:3000
```bash
yarn dev
npm run dev
```
## Deploy Your Own
## Production
Build the application for production:
```bash
yarn build
npm run build
```
Locally preview production build:
```bash
npm run preview
```
Checkout the [deployment documentation](https://v3.nuxtjs.org/guide/deploy/presets) for more information.