Skip to content

Commit

Permalink
Add missing quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens committed Dec 29, 2019
1 parent adc5b3f commit 2506429
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/next/build/webpack/loaders/next-serverless-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ const nextServerlessLoader: loader.Loader = function() {
${
basePath
? `
if(req.url.startsWith(${basePath})) {
req.url = req.url.replace(${basePath}, '')
if(req.url.startsWith('${basePath}')) {
req.url = req.url.replace('${basePath}', '')
}
`
: ''
Expand Down Expand Up @@ -197,8 +197,8 @@ const nextServerlessLoader: loader.Loader = function() {
${
basePath
? `
if(req.url.startsWith(${basePath})) {
req.url = req.url.replace(${basePath}, '')
if(req.url.startsWith('${basePath}')) {
req.url = req.url.replace('${basePath}', '')
}
`
: ''
Expand Down

0 comments on commit 2506429

Please sign in to comment.