Skip to content

Commit

Permalink
Apply suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Jan 12, 2020
1 parent 1295b8d commit 3945df6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/next/next-server/lib/router/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ import { isDynamicRoute } from './utils/is-dynamic'
import { getRouteMatcher } from './utils/route-matcher'
import { getRouteRegex } from './utils/route-regex'

// @ts-ignore variable is always a string
const basePath: string = process.env.__NEXT_ROUTER_BASEPATH
const basePath = process.env.__NEXT_ROUTER_BASEPATH as string

export function addBasePath(path: string): string {
return path.indexOf(basePath) !== 0 ? basePath + path : path
Expand Down

0 comments on commit 3945df6

Please sign in to comment.