Skip to content

Commit

Permalink
remove unused var
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Mar 10, 2023
1 parent 7d646c0 commit b6699cf
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import type webpack from 'webpack'
import path from 'path'
import { stringifyRequest } from '../stringify-request'
import { isStaticMetadataRoute } from '../../../lib/is-app-route-route'

function getContentType(resourcePath: string) {
Expand All @@ -23,11 +22,9 @@ import fs from 'fs'
import path from 'path'
import { fileURLToPath } from 'url'
const filePath = ${stringifyRequest(this, resourcePath)}
const relativePath = fileURLToPath(import.meta.url)
const buffer = fs.readFileSync(relativePath)
const buffer = fs.readFileSync(fileURLToPath(import.meta.url))
const contentType = ${JSON.stringify(getContentType(resourcePath))}
export function GET() {
return new NextResponse(buffer, {
status: 200,
Expand Down

0 comments on commit b6699cf

Please sign in to comment.