diff --git a/apps/visual-regression/server.js b/apps/visual-regression/server.js index fbc5a710..b8bc4859 100644 --- a/apps/visual-regression/server.js +++ b/apps/visual-regression/server.js @@ -4,7 +4,7 @@ const path = require("path"); const app = express(); const port = 8083; - +const server = http.createServer(app); const filePath = path.resolve("..", "docs", "storybook-static"); app.use(express.static(filePath)); @@ -13,8 +13,6 @@ app.use("*", (_, res) => { res.sendFile(path.join(filePath, "index.html")); }); -const server = http.createServer(app); - server.listen(port, () => { console.log(`Server is running on http://localhost:${port}`); });