Skip to content

Commit 5650211

Browse files
committed
feat: add react type support
1 parent 1424fe4 commit 5650211

File tree

2 files changed

+16
-9
lines changed

2 files changed

+16
-9
lines changed

README.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,22 @@
44

55
### Install command line tools
66

7-
> requires [yarn](https://classic.yarnpkg.com/en/docs/install/) or [npm](https://www.npmjs.com/get-npm)
7+
Open your terminal, copy the the command below and run it:
88

99
```bash
1010
# install cli
11-
# you can use npm instead: `npm install -g @letsh/cli`
12-
yarn global add @letsh/cli
11+
# optional: you can use npm or yarn instead: `npm install -g @letsh/cli` or `yarn global add @letsh/cli`
12+
curl -o- -sL https://install.let.sh.cn/install.sh | bash
13+
```
14+
15+
### Login
1316

17+
```bash
1418
# login with your github account
1519
lets login
1620
```
1721

18-
### Then clone project and deploy with a single command line
22+
### Then clone example project and deploy with a single command line
1923

2024
#### Static hosting
2125

@@ -25,6 +29,14 @@ cd static
2529
lets deploy -t static
2630
```
2731

32+
#### React
33+
34+
```bash
35+
git clone https://github.com/let-sh/example
36+
cd react
37+
lets deploy -t react
38+
```
39+
2840
#### Node express framework
2941

3042
```bash

express/src/index.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,4 @@ if (!process.env.PORT) {
88

99
const port = +process.env.PORT!;
1010
app.get("/", (_req, res) => res.send("Hello Oasis!"));
11-
app.get("/env", (_req, res) => {
12-
res.statusCode = 200;
13-
res.setHeader("Content-Type", "application/json");
14-
res.end(JSON.stringify(process.env));
15-
});
1611
app.listen(port, () => console.log(`Example app listening on port ${port}!`));

0 commit comments

Comments
 (0)