You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/v2/guide/ssr.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ If you're using Webpack, you can easily add prerendering with the [prerender-spa
32
32
33
33
## Hello World
34
34
35
-
If you've gotten this far, you're ready to see SSR in action. It sounds complex, but a simple node script demoing the feature requires only 3 steps:
35
+
If you've gotten this far, you're ready to see SSR in action. It sounds complex, but a simple Node.js script demoing the feature requires only 3 steps:
36
36
37
37
```js
38
38
// Step 1: Create a Vue instance
@@ -86,10 +86,10 @@ new Vue({
86
86
})
87
87
```
88
88
89
-
To adapt this for SSR, there are a few modifications we'll have to make, so that it will work both in the browser and within node:
89
+
To adapt this for SSR, there are a few modifications we'll have to make, so that it will work both in the browser and within Node.js:
90
90
91
91
- When in the browser, add an instance of our app to the global context (i.e. `window`), so that we can mount it.
92
-
- When in node, export a factory function so that we can create a fresh instance of the app for every request.
92
+
- When in Node.js, export a factory function so that we can create a fresh instance of the app for every request.
0 commit comments