Skip to content

Commit 3ce0ce6

Browse files
timqianYuga Sun
authored andcommitted
restore the example folder
1 parent 3d0da46 commit 3ce0ce6

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

example/serverless.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
org: orgDemo
2+
app: appDemo
3+
stage: dev
4+
component: website
5+
name: websiteDemo
6+
7+
inputs:
8+
src:
9+
src: ./src
10+
index: index.html
11+
error: index.html
12+
region: ap-guangzhou
13+
bucketName: my-bucket
14+
protocol: https

example/src/index.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>Serverless Component - Website</title>
7+
<style lang="css">
8+
h1 {
9+
text-align: center;
10+
width: 600px;
11+
margin: 300px auto;
12+
}
13+
</style>
14+
</head>
15+
<body>
16+
<h1>
17+
Welcome to website created by
18+
<a href="https://serverlesscloud.cn/">Serverless Framework.</a>
19+
</h1>
20+
</body>
21+
</html>

0 commit comments

Comments
 (0)