mirror of
https://github.com/SukkaW/Surge.git
synced 2026-02-03 04:21:53 +08:00
Refactor: rework tracer
This commit is contained in:
@@ -18,7 +18,7 @@ const folderAndFilesToBeDeployed = [
|
||||
'LICENSE'
|
||||
];
|
||||
|
||||
export const buildPublic = task(import.meta.path, async (span) => {
|
||||
export const buildPublic = task(import.meta.main, import.meta.path)(async (span) => {
|
||||
await span
|
||||
.traceChild('copy public files')
|
||||
.traceAsyncFn(async () => {
|
||||
@@ -45,10 +45,6 @@ export const buildPublic = task(import.meta.path, async (span) => {
|
||||
return Bun.write(path.join(publicPath, 'index.html'), html);
|
||||
});
|
||||
|
||||
if (import.meta.main) {
|
||||
buildPublic();
|
||||
}
|
||||
|
||||
const priorityOrder: Record<'default' | string & {}, number> = {
|
||||
domainset: 1,
|
||||
non_ip: 2,
|
||||
|
||||
Reference in New Issue
Block a user