@ -44,6 +44,7 @@
"add": "^2.0.6",
"byline": "^5.0.0",
"chokidar": "^3.5.3",
"express": "^4.18.2",
"isomorphic-git": "^1.24.2",
"node-pty": "^0.10.1",
"yarn": "^1.22.19"
@ -114,3 +114,11 @@ WindowMenu(commandKeys, execCommand, []),
Menu.setApplicationMenu(Menu.buildFromTemplate(menu))
import express from 'express';
import { cacheDir } from './utils/config'
const appExpress = express()
console.log('cacheDir', cacheDir)
appExpress.use(express.static(cacheDir))
appExpress.listen(3000)
@ -2,7 +2,7 @@ import fs from 'fs'
import os from 'os'
import path from 'path'
const cacheDir = path.join(os.homedir(), '.cache_remix_ide')
export const cacheDir = path.join(os.homedir(), '.cache_remix_ide')
@ -2210,7 +2210,7 @@ exponential-backoff@^3.1.1:
resolved "https://registry.npmjs.org/exponential-backoff/-/exponential-backoff-3.1.1.tgz"
integrity sha512-dX7e/LHVJ6W3DE1MHWi9S1EYzDESENfLrYohG2G++ovZrYOkm4Knwa0mc1cn84xJOR4KEU0WSchhLbd0UklbHw==
express@^4.14.0:
express@^4.14.0, express@^4.18.2:
version "4.18.2"
resolved "https://registry.yarnpkg.com/express/-/express-4.18.2.tgz#3fabe08296e930c796c19e3c516979386ba9fd59"
integrity sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==