Skip to content

Commit

Permalink
Fix the static resources path
Browse files Browse the repository at this point in the history
  • Loading branch information
azatsarynnyy authored Oct 31, 2024
1 parent 97e8de4 commit c508e8d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion status-app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

const chokidar = require('chokidar');
const fs = require("fs");
const path = require('path');
const express = require('express');
const ideInfo = require('../product-info.json');

Expand Down Expand Up @@ -40,7 +41,7 @@ var joinLink = new Promise((resolve) => {

// return the status page
const app = express();
app.use(express.static(__dirname + '/public'));
app.use(express.static(path.join(__dirname, 'public')));
app.set('view engine', 'ejs');
app.get('/', async function (req, res) {
const ideFullName = ideInfo.productVendor + ' ' + ideInfo.name + ' ' + ideInfo.version;
Expand Down

0 comments on commit c508e8d

Please sign in to comment.