Skip to content

Commit 64f7a41

Browse files
authored
Fix production webserver (#110)
whoops. Slipped past in merging #102, never actually started the webserver in production. There might be some lingering asset issues here, tbd
1 parent b0f2be3 commit 64f7a41

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

index.prod.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
import "dotenv/config";
55
import express from "express";
66

7-
import Sentry from "#~/helpers/sentry.server";
7+
// import Sentry from "#~/helpers/sentry.server";
88

99
// This only exists after a production build, when this file is copied into Docker
10-
import { app as rrApp } from "./server/index";
10+
import { app as rrApp } from "./build/server/index.js";
1111

1212
const app = express();
1313

@@ -23,10 +23,10 @@ app.use(express.static("build/client", { maxAge: "1h" }));
2323
/** ERROR TRACKING
2424
Must go after route handlers
2525
*/
26-
app.use(Sentry.Handlers.errorHandler());
26+
// app.use(Sentry.Handlers.errorHandler());
2727

2828
const errorHandler = (error) => {
29-
Sentry.captureException(error);
29+
// Sentry.captureException(error);
3030
if (error instanceof Error) {
3131
console.log("ERROR", error.message, error.stack);
3232
} else if (typeof error === "string") {

0 commit comments

Comments
 (0)