Skip to content

Commit 1e2ae34

Browse files
docs(examples): update example to Nuxt v4
[skip ci]
1 parent d8f392e commit 1e2ae34

8 files changed

Lines changed: 29 additions & 12 deletions

File tree

examples/nuxt-example/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# Nuxt 3 Minimal Starter
1+
# Nuxt Minimal Starter
22

3-
Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more.
3+
Look at the [Nuxt documentation](https://nuxt.com/docs/getting-started/introduction) to learn more.
44

55
## Setup
66

7-
Make sure to install the dependencies:
7+
Make sure to install dependencies:
88

99
```bash
1010
# npm
@@ -29,7 +29,7 @@ Start the development server on `http://localhost:3000`:
2929
npm run dev
3030

3131
# pnpm
32-
pnpm run dev
32+
pnpm dev
3333

3434
# yarn
3535
yarn dev
@@ -47,7 +47,7 @@ Build the application for production:
4747
npm run build
4848

4949
# pnpm
50-
pnpm run build
50+
pnpm build
5151

5252
# yarn
5353
yarn build
@@ -63,7 +63,7 @@ Locally preview production build:
6363
npm run preview
6464

6565
# pnpm
66-
pnpm run preview
66+
pnpm preview
6767

6868
# yarn
6969
yarn preview

examples/nuxt-example/components/Connection.client.vue renamed to examples/nuxt-example/app/components/Connection.client.vue

File renamed without changes.
File renamed without changes.

examples/nuxt-example/nuxt.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// https://nuxt.com/docs/api/configuration/nuxt-config
22

33
export default defineNuxtConfig({
4+
compatibilityDate: '2025-07-15',
45
devtools: {
56
enabled: true
67
},

examples/nuxt-example/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
"postinstall": "nuxt prepare"
1111
},
1212
"dependencies": {
13-
"nuxt": "^3.11.1",
14-
"socket.io": "^4.7.5",
15-
"socket.io-client": "^4.7.5",
16-
"vue": "^3.4.21",
17-
"vue-router": "^4.3.0"
13+
"nuxt": "^4.4.6",
14+
"socket.io": "^4.8.3",
15+
"socket.io-client": "^4.8.3",
16+
"vue": "^3.5.34",
17+
"vue-router": "^5.0.7"
1818
}
1919
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
User-Agent: *
2+
Disallow:
Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
{
22
// https://nuxt.com/docs/guide/concepts/typescript
3-
"extends": "./.nuxt/tsconfig.json"
3+
"files": [],
4+
"references": [
5+
{
6+
"path": "./.nuxt/tsconfig.app.json"
7+
},
8+
{
9+
"path": "./.nuxt/tsconfig.server.json"
10+
},
11+
{
12+
"path": "./.nuxt/tsconfig.shared.json"
13+
},
14+
{
15+
"path": "./.nuxt/tsconfig.node.json"
16+
}
17+
]
418
}

0 commit comments

Comments
 (0)