Skip to content

Commit

Permalink
docs: translate ssr guide > server configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
naokie committed May 18, 2021
1 parent 60dda5c commit 15358af
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/guide/ssr/server.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Server Configuration
# サーバ設定

The [code structure](./structure.html) and [webpack configuration](./build-config.html) we've described also require some changes to our Express server code.
[コードの構造](./structure.html) [webpack の設定](./build-config.html) でも説明したとおり、 Express サーバのコードにもいくつかの変更を必要とします。

- we need to create an application with a built `app.js` from the resulting bundle. A path to it can be found using the webpack manifest:
- バンドル結果のビルドした `app.js` を使ってアプリケーションを作成する必要があります。ファイルパスは、webpack マニフェストを使って見つけられます:

```js
// server.js
Expand All @@ -13,7 +13,7 @@ The [code structure](./structure.html) and [webpack configuration](./build-confi
const createApp = require(appPath).default
```

- we have to define correct paths to all the assets:
- すべてのアセットへ正しいパスを定義しなければなりません:

```js
// server.js
Expand All @@ -32,7 +32,7 @@ The [code structure](./structure.html) and [webpack configuration](./build-confi
)
```

- we need to replace the `index.html` content with our server-side rendered application content:
- `index.html` のコンテンツをサーバサイドでレンダリングしたアプリケーションのコンテンツに置き換える必要があります:

```js
// server.js
Expand All @@ -55,7 +55,7 @@ The [code structure](./structure.html) and [webpack configuration](./build-confi
})
```

Below you can find a full code for our Express server:
以下は Express サーバのすべてのコードです:

```js
const path = require('path')
Expand Down

0 comments on commit 15358af

Please sign in to comment.