Skip to content

Commit

Permalink
chore: add prefixPaths field on IProgram type (gatsbyjs#36400)
Browse files Browse the repository at this point in the history
  • Loading branch information
pieh authored Aug 17, 2022
1 parent 57602fe commit 03157e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/gatsby/src/commands/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export interface IProgram {
inspectBrk?: number
graphqlTracing?: boolean
verbose?: boolean
prefixPaths?: boolean
setStore?: (store: Store<IGatsbyState, AnyAction>) => void
}

Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby/src/utils/get-public-path.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const getPublicPath = ({
}: {
assetPrefix?: string
pathPrefix?: string
prefixPaths: boolean
prefixPaths?: boolean
}): string => {
if (prefixPaths && (assetPrefix || pathPrefix)) {
const normalized = [assetPrefix, pathPrefix]
Expand Down

0 comments on commit 03157e8

Please sign in to comment.