Skip to content

Commit 0513171

Browse files
committed
セルフホホスティングの手順を追加
1 parent fe3eff5 commit 0513171

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

README.md

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@ It helps you to use microCMS from JavaScript and Node.js applications.
88

99
### Install
1010

11-
Install npm package.
11+
#### Node.js
1212

13-
> [!IMPORTANT]
14-
> v3.0.0 or later requires Node.js **v18 or higher**.
13+
Install npm package.
1514

1615
```bash
1716
$ npm install microcms-js-sdk
@@ -21,8 +20,21 @@ or
2120
$ yarn add microcms-js-sdk
2221
```
2322

24-
> [!WARNING]
25-
> The hosting service (unpkg.com) is not related to microCMS. For production use, we recommend self-hosting on your own server.
23+
> [!IMPORTANT]
24+
> v3.0.0 or later requires Node.js **v18 or higher**.
25+
26+
#### Browser(Self-hosting)
27+
28+
Download and unzip `microcms-js-sdk-x.y.z.zip` from the [releases page](https://github.com/microcmsio/microcms-js-sdk/releases). Then, host it on any server of your choice and use it.
29+
The target file is `./dist/umd/microcms-js-sdk.js`.
30+
31+
```html
32+
<script src="./microcms-js-sdk.js"></script>
33+
```
34+
35+
#### Browser(CDN)
36+
37+
Please load and use the URL provided by an external provider.
2638

2739
```html
2840
<script src="https://unpkg.com/[email protected]/dist/umd/microcms-js-sdk.js"></script>
@@ -32,6 +44,9 @@ or
3244
<script src="https://unpkg.com/microcms-js-sdk@latest/dist/umd/microcms-js-sdk.js"></script>
3345
```
3446

47+
> [!WARNING]
48+
> The hosting service (unpkg.com) is not related to microCMS. For production use, we recommend self-hosting on your own server.
49+
3550
### How to use
3651

3752
First, create a client.

0 commit comments

Comments
 (0)