Skip to content

Commit

Permalink
fix file path
Browse files Browse the repository at this point in the history
  • Loading branch information
alishakawaguchi committed Aug 1, 2024
1 parent 3c4e7b2 commit 5959cf9
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { withNeosyncContext } from '@/api-only/neosync-context';
import * as fs from 'fs';
import { NextRequest, NextResponse } from 'next/server';
import path from 'path';

export async function GET(req: NextRequest): Promise<NextResponse> {
return withNeosyncContext(async () => {
const data = await fs.promises.readFile(
'/app/apps/web/@types/neosync-transformers.d.ts',
'utf8'
);
const filePath = path.resolve('@types/neosync-transformers.d.ts');
const data = await fs.promises.readFile(filePath, 'utf8');
return data;
})(req);
}

0 comments on commit 5959cf9

Please sign in to comment.