Skip to content

Commit

Permalink
revert template changes from merge (#6199)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-ebey committed Apr 26, 2023
1 parent b739bba commit 54a7329
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions templates/express/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.DS_Store
node_modules

/.cache
Expand Down
2 changes: 1 addition & 1 deletion templates/express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "module",
"scripts": {
"build": "remix build",
"dev": "cross-env NODE_ENV=development remix dev -c \"node ./server.js\"",
"dev": "remix dev -c \"node ./server.js\"",
"start": "cross-env NODE_ENV=production node ./server.js",
"typecheck": "tsc"
},
Expand Down
4 changes: 2 additions & 2 deletions templates/express/server.ts → templates/express/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ app.listen(port, async () => {
console.log(`✅ Express server listening on port ${port}`);

if (process.env.NODE_ENV === "development") {
const { broadcastDevReady } = await import("@remix-run/node");
broadcastDevReady(build);
const { devReady } = await import("@remix-run/node");
devReady(build);
}
});

0 comments on commit 54a7329

Please sign in to comment.