diff --git a/package.json b/package.json index 5cce38d..ddb9140 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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", diff --git a/remix.config.js b/remix.config.js index 74153e3..f116c82 100644 --- a/remix.config.js +++ b/remix.config.js @@ -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, - }, }; diff --git a/server.ts b/server.ts index b7c6b1e..127adf2 100644 --- a/server.ts +++ b/server.ts @@ -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 @@ -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);