I am trying to connect preview up. However there is no documentation on dealing with routeResolver only projects. I do not have a link resolver and the redirectToPreviewURL of the preview.js file requires one. Can anyone help?
import { routeResolver, createClient } from '../../../prismicio';
import { setPreviewData, redirectToPreviewURL } from '@prismicio/next';
export default async (req: any, res: any) => {
const client = createClient({ req });
await setPreviewData({ req, res });
await redirectToPreviewURL({ req, res, client, routeResolver });
};
The above is an example where I tried to use routeResolver instead of linkResolver with no success. Thanks in advance.