Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ruucm committed Sep 10, 2024
1 parent 249a403 commit fb16601
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ export default defineConfig((options): any => {
async onSuccess() {
if (!isDev) return;

io.emit("build");
io?.emit("build");

// Create the HTTP server
const server = http.createServer((req, res) => {
// Construct the file path
let filePath = path.join(
__dirname,
"dist",
req.url === "/" ? "index.html" : req.url
req.url === "/" || !req.url ? "index.html" : req.url
);
let extname = String(path.extname(filePath)).toLowerCase();
// need to remove query from extname
Expand Down

0 comments on commit fb16601

Please sign in to comment.