File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
packages/react-email/src/commands Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " react-email " : patch
3
+ ---
4
+
5
+ Normalize Windows paths in generated Next.js config
Original file line number Diff line number Diff line change @@ -78,14 +78,14 @@ const setNextEnvironmentVariablesForBuild = async (
78
78
const nextConfigContents = `
79
79
const path = require('path');
80
80
const emailsDirRelativePath = path.normalize('${ emailsDirRelativePath } ');
81
- const userProjectLocation = '${ process . cwd ( ) } ';
81
+ const userProjectLocation = '${ process . cwd ( ) . replace ( / \\ / g , '/' ) } ';
82
82
/** @type {import('next').NextConfig} */
83
83
module.exports = {
84
84
env: {
85
85
NEXT_PUBLIC_IS_BUILDING: 'true',
86
86
EMAILS_DIR_RELATIVE_PATH: emailsDirRelativePath,
87
87
EMAILS_DIR_ABSOLUTE_PATH: path.resolve(userProjectLocation, emailsDirRelativePath),
88
- PREVIEW_SERVER_LOCATION: '${ builtPreviewAppPath } ',
88
+ PREVIEW_SERVER_LOCATION: '${ builtPreviewAppPath . replace ( / \\ / g , '/' ) } ',
89
89
USER_PROJECT_LOCATION: userProjectLocation
90
90
},
91
91
// this is needed so that the code for building emails works properly
You can’t perform that action at this time.
0 commit comments