Skip to content
This repository was archived by the owner on Jul 4, 2024. It is now read-only.

Commit 5850e2c

Browse files
authored
Merge pull request #3 from eukarya-inc/refactor-by-test
Refactoring by adding tests
2 parents 8cd7ffb + 0a233f3 commit 5850e2c

12 files changed

+9666
-4345
lines changed

Diff for: .github/workflows/ci.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ jobs:
1818
- name: Dependencies
1919
run: npm ci
2020

21-
- name: Build
22-
run: npm install -g pkg && npm run build
21+
- name: Test and Build
22+
run: npm install -g pkg && npm test && npm run build

Diff for: README.md

+15-16
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,34 @@
11
## Notion proxy
22

3-
Notion proxy for public page
3+
Deliver notion pages via your domain.
4+
Reference [fruitionsite](https://github.com/stephenou/fruitionsite) for rewrite html processing.
5+
This proxy does not depend on Cloudflare and launches on express server.
46

57
### Node Version
68

79
18
810

911
### Environment variable
1012

11-
| Env | Description | Default |
12-
|-------------------|-----------------------------------------------------------------|----------------------------------|
13-
| PAGE_TITLE | Page title | "" |
14-
| PAGE_DESC | Page desc | "" |
15-
| GOOGLE_FONT | See: `https://developers.google.com/fonts/docs/getting_started` | "" |
16-
| PROXY_PORT | Proxy port number | 3456 |
17-
| DOMAIN | Proxy domain for rewrite | localhost:3456 |
18-
| IS_TLS | Proxy tls | false |
19-
| NOTION_PAGE_ID | Notion public page id | f1db0cfbe246475784c67f279289abea |
20-
| CUSTOM_SCRIPT | Custom script | "" |
21-
| CONTENT_CACHE_SEC | Cache time for loaded content (sec) | 300 |
22-
23-
### Reference for rewrite html processing
24-
25-
Reference: https://github.com/stephenou/fruitionsite
13+
| Env | Description | Default |
14+
|-------------------|--------------------------------------------|----------------------------------|
15+
| PAGE_TITLE | Page title on meta tag | "" |
16+
| PAGE_DESC | Page desc on meta tag | "" |
17+
| GOOGLE_FONT | See: `https://developers.google.com/fonts` | "" |
18+
| PROXY_PORT | Proxy port number | 3456 |
19+
| DOMAIN | Proxy domain for rewrite | localhost:3456 |
20+
| IS_TLS | Proxy tls(http/https) for rewrite | false |
21+
| NOTION_PAGE_ID | Notion public page id | f1db0cfbe246475784c67f279289abea |
22+
| CUSTOM_SCRIPT | Custom script | "" |
23+
| CONTENT_CACHE_SEC | Cache time for loaded content (sec) | 300 |
2624

2725
### Getting started
2826

2927
Start proxy for debug on local.
3028

3129
```bash
3230
$ npm ci
31+
$ npm test
3332
$ npm start_proxy
3433
3534
> node src/index.js

0 commit comments

Comments
 (0)