Skip to content

Commit

Permalink
Update to reveal the simpler entry.server in SPA mode
Browse files Browse the repository at this point in the history
  • Loading branch information
brophdawg11 committed Feb 28, 2024
1 parent ade8edf commit 1edfbe7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/remix-dev/cli/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,9 @@ export async function generateEntry(
let defaultEntryClient = path.resolve(defaultsDirectory, "entry.client.tsx");
let defaultEntryServer = path.resolve(
defaultsDirectory,
`entry.server.${serverRuntime}.tsx`
ctx?.remixConfig.ssr === false
? `entry.server.spa.tsx`
: `entry.server.${serverRuntime}.tsx`
);

let isServerEntry = entry === "entry.server";
Expand Down

0 comments on commit 1edfbe7

Please sign in to comment.