feat(BOOK-609): Using embedded url for assets instead of href since that is not updated when the asset is updated)
* feat(BOOK-609): Updated refs handling for assets inside content pages Approved-by: Linus Flood
This commit is contained in:
@@ -15,7 +15,7 @@ import {
|
||||
generateTagsFromSystem,
|
||||
} from "../../../utils/generateTag"
|
||||
import { startPageRefsSchema, startPageSchema } from "./output"
|
||||
import { getConnections, getConnectionsFromAssets } from "./utils"
|
||||
import { getConnections } from "./utils"
|
||||
|
||||
import type { z } from "zod"
|
||||
|
||||
@@ -75,8 +75,9 @@ export const startPageQueryRouter = router({
|
||||
|
||||
metricsGetStartPage.start()
|
||||
|
||||
const connections = getConnections(validatedRefsData.data)
|
||||
const assetConnections = getConnectionsFromAssets(validatedRefsData.data)
|
||||
const { connections, assetConnections } = getConnections(
|
||||
validatedRefsData.data
|
||||
)
|
||||
|
||||
const tags = [
|
||||
generateTagsFromSystem(lang, connections),
|
||||
|
||||
Reference in New Issue
Block a user