Skip to content

Commit d7b1d71

Browse files
committed
[fix] Token missing of GitHub client in Serverless runtime
1 parent 3bf3e0d commit d7b1d71

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@idea2app/ows",
3-
"version": "3.0.0",
3+
"version": "3.2.0",
44
"description": "React project scaffold based on TypeScript, Next.js, Bootstrap & Workbox.",
55
"private": true,
66
"engines": {

pages/api/GitHub/core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Context, Middleware } from 'koa';
2-
import { githubClient } from 'mobx-github';
32
import { githubOAuth2 } from 'next-ssr-middleware';
43

4+
import { githubClient } from '../../../models/Base';
55
import { ProxyBaseURL, VERCEL } from '../../../models/configuration';
66

77
export const proxyGithub = async <T>({

pages/api/crawler/task.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { githubClient } from 'mobx-github';
21
import { createKoaRouter } from 'next-ssr-middleware';
32

3+
import { githubClient } from '../../../models/Base';
44
import { CRAWLER_TOKEN } from '../../../models/configuration';
55
import { withSafeKoaRouter } from '../core';
66

0 commit comments

Comments
 (0)