We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent beeff0f commit a017517Copy full SHA for a017517
src/index.ts
@@ -41,7 +41,9 @@ const startServer = () => {
41
const serviceName = path.parse(file).name;
42
// biome-ignore lint/style/noNonNullAssertion: Asserted above
43
const scriptPath = path.join(CONFIG.script_path!, file);
44
- const absoluteScriptPath = path.join(process.cwd(), scriptPath);
+ const absoluteScriptPath = CONFIG.script_path?.startsWith("/")
45
+ ? scriptPath
46
+ : path.join(process.cwd(), scriptPath);
47
48
app.get(`/${serviceName}`, async (req, res) => {
49
const logger = new Logger({
0 commit comments