Skip to content

Commit 57bec95

Browse files
committed
docs: remove old mentions of Vue 2
1 parent fc2b380 commit 57bec95

File tree

2 files changed

+2
-57
lines changed

2 files changed

+2
-57
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ app.use(pinia)
140140
app.mount('#app')
141141
```
142142

143-
For more detailed instructions, including [Nuxt configuration](https://pinia.vuejs.org/ssr/nuxt.html#nuxt-js), check the [Documentation](https://pinia.vuejs.org).
143+
For more detailed instructions, including [Nuxt configuration](https://pinia.vuejs.org/ssr/nuxt.html), check the [Documentation](https://pinia.vuejs.org).
144144

145145
### Create a Store
146146

packages/docs/ssr/nuxt.md

Lines changed: 1 addition & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
title="Learn about SSR best practices"
66
/>
77

8-
Using Pinia with [Nuxt](https://nuxt.com/) is easier since Nuxt takes care of a lot of things when it comes to _server side rendering_. For instance, **you don't need to care about serialization nor XSS attacks**. Pinia supports Nuxt Bridge, Nuxt 3 and Nuxt 4. For bare Nuxt 2 support, [see below](#nuxt-2-without-bridge).
8+
Using Pinia with [Nuxt](https://nuxt.com/) is easier since Nuxt takes care of a lot of things when it comes to _server side rendering_. For instance, **you don't need to care about serialization nor XSS attacks**. Pinia supports Nuxt 3 and 4.
99

1010
<RuleKitLink />
1111

@@ -104,58 +104,3 @@ export default defineNuxtConfig({
104104
```
105105

106106
Note the folders are relative to the root of your project. If you change the `srcDir` option, you need to adapt the paths accordingly.
107-
108-
## Nuxt 2 without bridge
109-
110-
Pinia supports Nuxt 2 until `@pinia/nuxt` v0.2.1. Make sure to also install [`@nuxtjs/composition-api`](https://composition-api.nuxtjs.org/) alongside `pinia`:
111-
112-
```bash
113-
yarn add pinia @pinia/[email protected] @nuxtjs/composition-api
114-
# or with npm
115-
npm install pinia @pinia/[email protected] @nuxtjs/composition-api
116-
```
117-
118-
We supply a _module_ to handle everything for you, you only need to add it to `buildModules` in your `nuxt.config.js` file:
119-
120-
```js
121-
// nuxt.config.js
122-
export default {
123-
// ... other options
124-
buildModules: [
125-
// Nuxt 2 only:
126-
// https://composition-api.nuxtjs.org/getting-started/setup#quick-start
127-
'@nuxtjs/composition-api/module',
128-
'@pinia/nuxt',
129-
],
130-
}
131-
```
132-
133-
### TypeScript
134-
135-
If you are using Nuxt 2 (`@pinia/nuxt` < 0.3.0) with TypeScript or have a `jsconfig.json`, you should also add the types for `context.pinia`:
136-
137-
```json
138-
{
139-
"types": [
140-
// ...
141-
"@pinia/nuxt"
142-
]
143-
}
144-
```
145-
146-
This will also ensure you have autocompletion 😉 .
147-
148-
### Using Pinia alongside Vuex
149-
150-
It is recommended to **avoid using both Pinia and Vuex** but if you need to use both, you need to tell pinia to not disable it:
151-
152-
```js
153-
// nuxt.config.js
154-
export default {
155-
buildModules: [
156-
'@nuxtjs/composition-api/module',
157-
['@pinia/nuxt', { disableVuex: false }],
158-
],
159-
// ... other options
160-
}
161-
```

0 commit comments

Comments
 (0)