We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86eba8c commit 6bf8ddeCopy full SHA for 6bf8dde
src/lib.ts
@@ -285,7 +285,17 @@ export function start(
285
app.get(
286
'/liascript/*',
287
function (req: express.Request, res: express.Response) {
288
- res.sendFile(req.params[0], { root: liascriptPath })
+ res.sendFile(req.params[0], { root: liascriptPath }, (err) => {
289
+ if (err) {
290
+ // Extract the file path by removing the '/liascript/' prefix
291
+ const projectPath = req.params[0]
292
+ console.log(
293
+ `File not found in liascriptPath, trying project.path: ${projectPath}`,
294
+ project.path
295
+ )
296
+ res.sendFile(projectPath, { root: project.path })
297
+ }
298
+ })
299
}
300
)
301
// ignore this one
0 commit comments