Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Michaël De Boey <info@michaeldeboey.be>
  • Loading branch information
mcansh and MichaelDeBoey authored Mar 7, 2023
1 parent 126ece6 commit c2313c6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/remix-dev/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -484,11 +484,11 @@ export async function readConfig(
);
}

let clientRuntime = deps["@remix-run/react"] ? "react" : undefined;
let clientRenderer = deps["@remix-run/react"] ? "react" : undefined;

if (!clientRuntime) {
if (!clientRenderer) {
throw new Error(
`Could not determine runtime. Please install the following: @remix-run/react`
`Could not determine renderer. Please install the following: @remix-run/react`
);
}

Expand Down Expand Up @@ -528,7 +528,7 @@ export async function readConfig(
});
}

entryServerFile = `${serverRuntime}/entry.server.${clientRuntime}-${type}.tsx`;
entryServerFile = `${serverRuntime}/entry.server.${clientRenderer}-${type}.tsx`;
}

if (userEntryClientFile) {
Expand Down Expand Up @@ -556,7 +556,7 @@ export async function readConfig(
? "stream"
: "string";

entryClientFile = `entry.client.${clientRuntime}-${type}.tsx`;
entryClientFile = `entry.client.${clientRenderer}-${type}.tsx`;
}

let entryClientFilePath = userEntryClientFile
Expand Down

0 comments on commit c2313c6

Please sign in to comment.