Skip to content

Commit

Permalink
Merge branch 'canary' into test-deploy-datadog
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Jun 11, 2023
2 parents 1aba6ab + cfd64aa commit d144bb9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/actions/next-stats-action/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ if (!allowedActions.has(actionInfo.actionName) && !actionInfo.isRelease) {

if (actionInfo.isRelease) {
logger('Release detected, using last stable tag')
const lastStableTag = await getLastStable(mainRepoDir, actionInfo.prRef)
const lastStableTag = await getLastStable(diffRepoDir, actionInfo.prRef)
mainRef = lastStableTag
mainNextSwcVersion = lastStableTag
if (!lastStableTag) throw new Error('failed to get last stable tag')
Expand Down
3 changes: 2 additions & 1 deletion packages/next/src/lib/metadata/get-metadata-route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { interpolateDynamicPath } from '../../server/server-utils'
import { getNamedRouteRegex } from '../../shared/lib/router/utils/route-regex'
import { djb2Hash } from '../../shared/lib/hash'
import { normalizeAppPath } from '../../shared/lib/router/utils/app-paths'
import { normalizePathSep } from '../../shared/lib/page-path/normalize-path-sep'

/*
* If there's special convention like (...) or @ in the page path,
Expand Down Expand Up @@ -42,7 +43,7 @@ export function fillMetadataSegment(

const { name, ext } = path.parse(imageSegment)

return path.join(route, `${name}${routeSuffix}${ext}`)
return normalizePathSep(path.join(route, `${name}${routeSuffix}${ext}`))
}

/**
Expand Down

0 comments on commit d144bb9

Please sign in to comment.