fix: live-preview build

This commit is contained in:
Alessio Gravili
2024-03-18 15:43:40 -04:00
parent 26df916421
commit a9b1a2e7b7
3 changed files with 3 additions and 9 deletions

View File

@@ -1,10 +1,10 @@
'use client'
import { useLivePreview } from '@payloadcms/live-preview-react'
import React from 'react'
import type { Page as PageType } from '../../../../test/live-preview/payload-types.js'
import { useLivePreview } from '../../../../packages/live-preview-react/src/index.js'
import { PAYLOAD_SERVER_URL } from '../../_api/serverURL.js'
import { Blocks } from '../../_components/Blocks/index.js'
import { Hero } from '../../_components/Hero/index.js'

View File

@@ -1,10 +1,10 @@
'use client'
import { useLivePreview } from '@payloadcms/live-preview-react'
import React from 'react'
import type { Post as PostType } from '../../../../../test/live-preview/payload-types.js'
import { useLivePreview } from '../../../../../packages/live-preview-react/src/index.js'
import { PAYLOAD_SERVER_URL } from '../../../_api/serverURL.js'
import { Blocks } from '../../../_components/Blocks/index.js'
import { PostHero } from '../../../_heros/PostHero/index.js'