Skip to content

Commit

Permalink
fix: remove unused fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
f4562 committed Dec 16, 2024
1 parent f654a4d commit 932c942
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/plugins/pluginAddEntry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,6 @@ const addEntry = ({
.replace(/^\//, '');
},
configureServer(server) {
server.httpServer?.once?.('listening', () => {
const { port, host: hostConfig } = server.config.server;
const host =
typeof hostConfig === 'string' && hostConfig !== '0.0.0.0' ? hostConfig : 'localhost';
fetch(`http://${host}:${port}${devEntryPath}`).catch((e) => {});
});
server.middlewares.use((req, res, next) => {
if (!fileName) {
next();
Expand Down

0 comments on commit 932c942

Please sign in to comment.