Skip to content

Commit

Permalink
update to remix v2 dev standard
Browse files Browse the repository at this point in the history
  • Loading branch information
xHomu committed Aug 30, 2023
1 parent 145944b commit 9f7dd74
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 20 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
"typecheck": "tsc"
},
"dependencies": {
"@remix-run/css-bundle": "*",
"@remix-run/express": "*",
"@remix-run/node": "*",
"@remix-run/react": "*",
"@remix-run/css-bundle": "2.0.0-pre.3",
"@remix-run/express": "2.0.0-pre.3",
"@remix-run/node": "2.0.0-pre.3",
"@remix-run/react": "2.0.0-pre.3",
"compression": "^1.7.4",
"cross-env": "^7.0.3",
"express": "^4.18.2",
Expand All @@ -25,8 +25,8 @@
"ts-node": "^10.9.1"
},
"devDependencies": {
"@remix-run/dev": "*",
"@remix-run/eslint-config": "*",
"@remix-run/dev": "2.0.0-pre.3",
"@remix-run/eslint-config": "2.0.0-pre.3",
"@swc/core": "^1.3.63",
"@types/compression": "^1.7.2",
"@types/express": "^4.17.17",
Expand Down
8 changes: 0 additions & 8 deletions remix.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,4 @@ export default {
serverModuleFormat: "esm",
tailwind: true,
postcss: true,
future: {
v2_dev: true,
v2_errorBoundary: true,
v2_meta: true,
v2_normalizeFormMethod: true,
v2_routeConvention: true,
v2_headers: true,
},
};
8 changes: 2 additions & 6 deletions server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ sourceMapSupport.install();
* @typedef {import('@remix-run/node').ServerBuild} ServerBuild
*/
const BUILD_PATH = "./build/index.js";
const WATCH_PATH = "./build/metafile.server.json";
const WATCH_PATH = "./build/version.txt";

/**
* Initial build
Expand Down Expand Up @@ -84,11 +84,7 @@ function createDevRequestHandler(): RequestHandler {
}

chokidar
.watch(WATCH_PATH, {
ignoreInitial: true,
// Chokidar settings to avoid certain race condition issues #6831
awaitWriteFinish: { stabilityThreshold: 200 },
})
.watch(WATCH_PATH, { ignoreInitial: true })
.on("add", handleServerUpdate)
.on("change", handleServerUpdate);

Expand Down

0 comments on commit 9f7dd74

Please sign in to comment.