Skip to content

Commit 056a37c

Browse files
committed
fix: revert a few changes
1 parent 841777d commit 056a37c

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

code/core/src/builder-manager/index.ts

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -172,23 +172,8 @@ const starter: StarterFunction = async function* starterGeneratorFn({ startTime,
172172
dev: true,
173173
immutable: true,
174174
});
175-
// TODO (43081j): maybe abstract this into a reusable function
176-
app.use('/sb-addons', (req, res, next) => {
177-
if (!req.url || req.url === '/') {
178-
next();
179-
return;
180-
}
181-
182-
serveAddons(req, res, next);
183-
});
184-
app.use('/sb-manager', (req, res, next) => {
185-
if (!req.url || req.url === '/') {
186-
next();
187-
return;
188-
}
189-
190-
serveCore(req, res, next);
191-
});
175+
app.use('/sb-addons', serveAddons);
176+
app.use('/sb-manager', serveCore);
192177

193178
const { cssFiles, jsFiles } = await readOrderedFiles(addonsDir, compilation?.outputFiles);
194179

0 commit comments

Comments
 (0)