Skip to content

Commit

Permalink
fix: vscode-unpkg crashed (#473)
Browse files Browse the repository at this point in the history
  • Loading branch information
conwnet authored Jan 19, 2023
1 parent b1fab6d commit 07a5ca3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions api/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
2 changes: 1 addition & 1 deletion api/vscode-unpkg/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import got from 'got';
import * as url from 'url';
import type { VercelRequest, VercelResponse } from '@vercel/node';

module.exports = async (req: VercelRequest, res: VercelResponse) => {
export default async (req: VercelRequest, res: VercelResponse) => {
const pathname = url.parse(req.url || '').pathname || '';
const matches = pathname.match(/^\/api\/vscode-unpkg\/([^/]+)\/(.*)/);

Expand Down

0 comments on commit 07a5ca3

Please sign in to comment.