Skip to content

Commit

Permalink
fix: Extend getEngine in surgio-helper to accept clashCore configuration
Browse files Browse the repository at this point in the history
geekdada committed Mar 16, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 08526cb commit 29deb88
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/gateway/src/surgio/surgio-helper.ts
Original file line number Diff line number Diff line change
@@ -26,7 +26,9 @@ export class SurgioHelper {

constructor(public cwd: string, public readonly config: CommandConfig) {
this.artifactList = config.artifacts
this.templateEngine = getEngine(config.templateDir)
this.templateEngine = getEngine(config.templateDir, {
clashCore: config.clashConfig?.clashCore,
})
this.configHash = this.getConfigSHA256Hash()
}

0 comments on commit 29deb88

Please sign in to comment.