Skip to content
This repository was archived by the owner on Jan 13, 2023. It is now read-only.

Commit 139282a

Browse files
feat: add flexibility for raw download url
1 parent 748465c commit 139282a

File tree

3 files changed

+526
-497
lines changed

3 files changed

+526
-497
lines changed

package.json

+17-17
Original file line numberDiff line numberDiff line change
@@ -53,53 +53,53 @@
5353
]
5454
},
5555
"dependencies": {
56-
"@next/mdx": "^11.0.0",
56+
"@next/mdx": "^11.0.1",
5757
"github-slugger": "^1.3.0",
5858
"gray-matter": "^4.0.3",
5959
"lodash": "^4.17.21",
60-
"marked": "^2.1.1",
60+
"marked": "^2.1.3",
6161
"mdx-observable": "0.2.0",
62-
"next-mdx-remote": "^3.0.2",
62+
"next-mdx-remote": "^3.0.4",
6363
"prism-react-renderer": "1.2.1",
6464
"react-click-away-listener": "2.0.3",
6565
"react-copy-to-clipboard": "^5.0.3",
66-
"react-instantsearch-dom": "^6.11.1",
66+
"react-instantsearch-dom": "^6.12.0",
6767
"react-markdown": "^6.0.2",
68-
"react-scroll": "^1.8.2",
68+
"react-scroll": "^1.8.3",
6969
"rehype-autolink-headings": "^5.1.0",
7070
"rehype-slug": "^4.0.1",
7171
"remark-external-links": "^8.0.0",
7272
"remark-gfm": "^1.0.0"
7373
},
7474
"devDependencies": {
75-
"@babel/preset-env": "^7.14.7",
75+
"@babel/preset-env": "^7.14.8",
7676
"@babel/preset-react": "^7.14.5",
7777
"@commitlint/cli": "^12.1.4",
7878
"@commitlint/config-conventional": "^12.1.4",
7979
"@mdx-js/runtime": "^1.6.22",
8080
"@rollup/plugin-babel": "^5.3.0",
81-
"@rollup/plugin-commonjs": "^19.0.0",
81+
"@rollup/plugin-commonjs": "^19.0.1",
8282
"@rollup/plugin-json": "^4.1.0",
83-
"@rollup/plugin-node-resolve": "^13.0.0",
83+
"@rollup/plugin-node-resolve": "^13.0.2",
8484
"@testing-library/jest-dom": "^5.14.1",
8585
"@testing-library/react": "^11.2.7",
86-
"@testing-library/user-event": "^13.1.9",
87-
"eslint": "^7.29.0",
86+
"@testing-library/user-event": "^13.2.0",
87+
"eslint": "^7.31.0",
8888
"eslint-config-prettier": "^8.3.0",
89-
"eslint-plugin-jest": "^24.3.6",
90-
"eslint-plugin-mdx": "^1.13.0",
89+
"eslint-plugin-jest": "^24.4.0",
90+
"eslint-plugin-mdx": "^1.14.1",
9191
"eslint-plugin-react": "^7.24.0",
9292
"husky": "^6.0.0",
93-
"jest": "^27.0.4",
94-
"lint-staged": "^11.0.0",
93+
"jest": "^27.0.6",
94+
"lint-staged": "^11.1.0",
9595
"next": "^11.0.0",
96-
"nock": "^13.1.0",
96+
"nock": "^13.1.1",
9797
"node-fetch": "^2.6.1",
9898
"pinst": "^2.1.6",
99-
"prettier": "^2.3.1",
99+
"prettier": "^2.3.2",
100100
"react": "*",
101101
"react-dom": "*",
102-
"rollup": "^2.52.2",
102+
"rollup": "^2.53.3",
103103
"stylelint": "^13.13.1",
104104
"stylelint-config-standard": "^22.0.0",
105105
"watch": "^1.0.2"

src/lib/github.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
const RAW_GITHUB_URL = 'https://raw.githubusercontent.com'
1+
const RAW_GITHUB_URL =
2+
process.env.NEXT_PUBLIC_RAW_GITHUB_URL || 'https://raw.githubusercontent.com'
23

34
function getErrorText(res) {
45
try {

0 commit comments

Comments
 (0)