Skip to content

Commit 3c8623c

Browse files
visualfanaticpieh
authored andcommitted
fix(gatsby-plugin-netlify): cast status to string (#18726)
* fix(gatsby-plugin-netlify): cast `status` to string * Update create-redirects.js
1 parent c3feb78 commit 3c8623c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: packages/gatsby-plugin-netlify/src/create-redirects.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ export default async function writeRedirectsFile(
2626
} = redirect
2727

2828
let status = isPermanent ? `301` : `302`
29-
if (statusCode) status = statusCode
29+
if (statusCode) status = String(statusCode)
3030

31-
if (force) status = status.concat(`!`)
31+
if (force) status = `${status}!`
3232

3333
// The order of the first 3 parameters is significant.
3434
// The order for rest params (key-value pairs) is arbitrary.

0 commit comments

Comments
 (0)