Skip to content

Commit 0d076d4

Browse files
MachinisteWebkazupon
authored andcommitted
Change node to Node.js to avoid misunderstood. (#864)
Signed-off-by: Bruno Lesieur <[email protected]>
1 parent 17c6a29 commit 0d076d4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/v2/guide/ssr.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ If you're using Webpack, you can easily add prerendering with the [prerender-spa
3232

3333
## Hello World
3434

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:
3636

3737
``` js
3838
// Step 1: Create a Vue instance
@@ -86,10 +86,10 @@ new Vue({
8686
})
8787
```
8888

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:
9090

9191
- 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.
9393

9494
Accomplishing this requires a little boilerplate:
9595

0 commit comments

Comments
 (0)