fix: jest run problem

pull/19590/head
Joel 1 year ago
parent 55afd91894
commit 4eb1013448

@ -13,7 +13,8 @@ const withMDX = require('@next/mdx')({
}, },
}) })
const remoteImageURL = new URL(`${process.env.NEXT_PUBLIC_WEB_PREFIX}/**`) // the default url to prevent parse url error when running jest
const remoteImageURL = new URL(`${process.env.NEXT_PUBLIC_WEB_PREFIX || 'http://localhost:3000'}/**`)
/** @type {import('next').NextConfig} */ /** @type {import('next').NextConfig} */
const nextConfig = { const nextConfig = {

Loading…
Cancel
Save