mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-07 04:22:04 +00:00
[examples] Updated Nuxt starter to v3 stable (#8928)
This commit is contained in:
@@ -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.
|
||||||
|
|
||||||
[](https://vercel.com/new/clone?repository-url=https://github.com/vercel/vercel/tree/main/examples/nuxtjs&template=nuxtjs)
|
[](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_
|
_Live Example: https://nuxtjs-template.vercel.app_
|
||||||
|
|
||||||
|
Look at the [Nuxt 3 documentation](https://v3.nuxtjs.org) to learn more.
|
||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
Install the dependencies:
|
Make sure to install the dependencies:
|
||||||
|
|
||||||
```bash
|
```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
|
```bash
|
||||||
yarn dev
|
npm run dev
|
||||||
```
|
```
|
||||||
|
|
||||||
## Deploy Your Own
|
## Production
|
||||||
|
|
||||||
Build the application for production:
|
Build the application for production:
|
||||||
|
|
||||||
```bash
|
```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.
|
||||||
@@ -2,4 +2,4 @@
|
|||||||
<div>
|
<div>
|
||||||
<NuxtWelcome />
|
<NuxtWelcome />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -1,6 +1,4 @@
|
|||||||
import { defineNuxtConfig } from 'nuxt3'
|
// https://v3.nuxtjs.org/api/configuration/nuxt.config
|
||||||
|
|
||||||
// https://v3.nuxtjs.org/docs/directory-structure/nuxt.config
|
|
||||||
export default defineNuxtConfig({
|
export default defineNuxtConfig({
|
||||||
|
|
||||||
})
|
})
|
||||||
@@ -1,11 +1,13 @@
|
|||||||
{
|
{
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "nuxi dev",
|
"build": "nuxt build",
|
||||||
"build": "nuxi build",
|
"dev": "nuxt dev",
|
||||||
"start": "node .output/server/index.mjs"
|
"generate": "nuxt generate",
|
||||||
|
"preview": "nuxt preview",
|
||||||
|
"postinstall": "nuxt prepare"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"nuxt3": "latest"
|
"nuxt": "^3.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
4608
examples/nuxtjs/pnpm-lock.yaml
generated
Normal file
4608
examples/nuxtjs/pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
// https://v3.nuxtjs.org/concepts/typescript
|
// https://v3.nuxtjs.org/concepts/typescript
|
||||||
"extends": "./.nuxt/tsconfig.json"
|
"extends": "./.nuxt/tsconfig.json"
|
||||||
}
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user