mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 04:12:34 +00:00
Added semicolon to fix Prettier
This commit is contained in:
@@ -127,7 +127,7 @@ exports.createPages = async ({graphql, boundActionCreators}) => {
|
||||
// A leading "/" is required for redirects to work,
|
||||
// But multiple leading "/" will break redirects.
|
||||
// For more context see github.com/reactjs/reactjs.org/pull/194
|
||||
const toPath = slug.startsWith('/') ? slug : `/${slug}`
|
||||
const toPath = slug.startsWith('/') ? slug : `/${slug}`;
|
||||
|
||||
redirectToSlugMap[fromPath] = slug;
|
||||
createRedirect({
|
||||
|
||||
Reference in New Issue
Block a user