Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Commit

Permalink
Merge pull request #52 from k99k5/main
Browse files Browse the repository at this point in the history
todo: test worker route
  • Loading branch information
k99k5 committed Feb 24, 2024
2 parents 7a97695 + ec74d3b commit a411987
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ routes.forEach((route) => {
route = route + '[[catchall]]';
}
if (route.split('/').length > 0) {
_worker = `import worker from "./../${Array.from({length: route.split('/').length}).map((_, i) => {
_worker = `import worker from "./${Array.from({length: route.split('/').length}).map((_, i) => {
return '../';
}).join('')}dist/server/worker.js"\n` + _worker;
} else {
Expand Down

0 comments on commit a411987

Please sign in to comment.