File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
packages/react-email/src/commands Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @react-email/preview-server " : patch
3+ ---
4+
5+ fix multiple lockfile warning during email build
Original file line number Diff line number Diff line change @@ -79,15 +79,17 @@ const setNextEnvironmentVariablesForBuild = async (
7979import path from 'path';
8080const emailsDirRelativePath = path.normalize('${ emailsDirRelativePath } ');
8181const userProjectLocation = '${ process . cwd ( ) . replace ( / \\ / g, '/' ) } ';
82+ const previewServerLocation = '${ builtPreviewAppPath . replace ( / \\ / g, '/' ) } ';
8283/** @type {import('next').NextConfig} */
8384const nextConfig = {
8485 env: {
8586 NEXT_PUBLIC_IS_BUILDING: 'true',
8687 EMAILS_DIR_RELATIVE_PATH: emailsDirRelativePath,
8788 EMAILS_DIR_ABSOLUTE_PATH: path.resolve(userProjectLocation, emailsDirRelativePath),
88- PREVIEW_SERVER_LOCATION: ' ${ builtPreviewAppPath . replace ( / \\ / g , '/' ) } ' ,
89+ PREVIEW_SERVER_LOCATION: previewServerLocation ,
8990 USER_PROJECT_LOCATION: userProjectLocation
9091 },
92+ outputFileTracingRoot: previewServerLocation,
9193 serverExternalPackages: ['esbuild'],
9294 typescript: {
9395 ignoreBuildErrors: true
You can’t perform that action at this time.
0 commit comments