Skip to content

Commit

Permalink
remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
shuding committed Feb 18, 2022
1 parent e006fe0 commit 3cffc17
Showing 1 changed file with 2 additions and 9 deletions.
Expand Up @@ -4,7 +4,6 @@ import type { BuildManifest } from '../../../../server/get-page-files'
import type { ReactLoadableManifest } from '../../../../server/load-components'

import { NextRequest } from '../../../../server/web/spec-extension/request'
import { toNodeHeaders } from '../../../../server/web/utils'

import WebServer from '../../../../server/web-server'
import {
Expand Down Expand Up @@ -109,15 +108,9 @@ export function getRender({
const requestHandler = server.getRequestHandler()

return async function render(request: NextRequest) {
const { nextUrl: url, cookies, headers } = request
const { pathname, searchParams } = url

const { nextUrl: url } = request
const { searchParams } = url
const query = Object.fromEntries(searchParams)
const req = {
url: pathname,
cookies,
headers: toNodeHeaders(headers),
}

// Preflight request
if (request.method === 'HEAD') {
Expand Down

0 comments on commit 3cffc17

Please sign in to comment.