Skip to content

Commit

Permalink
fix: use direct import to solve "Cannot find package" error
Browse files Browse the repository at this point in the history
  • Loading branch information
Leksat committed Dec 16, 2024
1 parent 7d8b38f commit af90c39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/website/netlify/functions/github-proxy.mts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { githubProxy } from '@amazeelabs/decap-cms-backend-token-auth/proxy';
import type { Context } from '@netlify/functions';

import { githubProxy } from '../../node_modules/@amazeelabs/decap-cms-backend-token-auth/build/proxy.js';

// eslint-disable-next-line @typescript-eslint/no-unused-vars
export default function (request: Request, context: Context) {
if (!process.env.DECAP_GITHUB_TOKEN) {
Expand Down

0 comments on commit af90c39

Please sign in to comment.