report errors to sentry

This commit is contained in:
m5r
2022-06-26 17:01:55 +02:00
parent 590e92eea4
commit 961dc8e461
11 changed files with 446 additions and 126 deletions

View File

@ -9,8 +9,8 @@ const watch = args.includes("--watch");
esbuild
.build({
write: true,
outfile: path.join(basePath, "server.js"),
entryPoints: [path.join(basePath, "server.ts")],
outfile: path.join(basePath, "server/index.js"),
entryPoints: [path.join(basePath, "server/index.ts")],
platform: "node",
format: "cjs",
bundle: true,
@ -19,7 +19,7 @@ esbuild
{
name: "remix-bundle-external",
setup(build) {
build.onResolve({ filter: /^\.\/build$/ }, () => ({ external: true }));
build.onResolve({ filter: /^\.\.\/build$/ }, () => ({ external: true }));
},
},
],
@ -37,7 +37,7 @@ esbuild
process.exit(1);
}
console.log("Server rebuilt successfully");
console.log("Server rebuilt successfully"); // TODO: find a way to restart the dev server process
},
}
: false,