- Patch the original
server.ts
orserver.js
file with the one from this repo. - Patch the
remix.config.js
file with the one from this repo. - Remove the
app/entry.server.ts
file. - Add
.env
file. - Patch the package.json with following json data:
{
"scripts": {
"build": "remix build",
"start": "cross-env NODE_ENV=production node --require dotenv/config ./server.js",
"preview": "npm run build && npm run start",
},
"dependencies": {
"@remix-run/express": "^1.16.0",
"@remix-run/node": "^1.16.0",
"@weaverse/hydrogen": "1.0.36",
"express": "^4.18.2",
}
}