Trying to resolve SW issues.
This commit is contained in:
@@ -103,7 +103,7 @@ if (process.env.NODE_ENV === "production") {
|
||||
app.use(express.static(path.join(__dirname, "admin/build")));
|
||||
|
||||
app.get("/service-worker.js", (req, res) => {
|
||||
res.sendFile(path.resolve(__dirname, "..", "build", "service-worker.js"));
|
||||
res.sendFile(path.resolve(__dirname, "client/build", "service-worker.js"));
|
||||
});
|
||||
|
||||
app.get("/admin*", function (req, res) {
|
||||
|
||||
Reference in New Issue
Block a user