Skip to content

Commit

Permalink
feat(backend): allow regenerating all package data via env var
Browse files Browse the repository at this point in the history
  • Loading branch information
dr460nf1r3 committed Nov 8, 2024
1 parent 5cf5e2a commit 2cd10e9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions backend/src/config/repo-manager.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ export default registerAs("repoMan", () => ({
gitlabToken: process.env.CAUR_GITLAB_TOKEN,
globalBlacklist: process.env.REPOMANAGER_NEVER_REBUILD ?? "[]",
globalTriggers: process.env.REPOMANAGER_ALWAYS_REBUILD ?? "[]",
regenDatabase: process.env.REPOMANAGER_REGEN_DB ?? false,
schedulerInterval: process.env.REPOMANAGER_SCHEDULE ?? "0 * * * *",
}));
1 change: 1 addition & 0 deletions backend/src/interfaces/repo-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export interface RepoSettings {
gitlabToken: string;
globalBlacklist: string[];
globalTriggers: string[];
regenDatabase: boolean;
}

export interface RepoUpdateRunParams {
Expand Down
4 changes: 2 additions & 2 deletions backend/webpack.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ module.exports = {
compiler: "tsc",
main: "./src/main.ts",
tsConfig: "./tsconfig.app.json",
assets: [],
optimization: true,
assets: ["backend/src/public"],
optimization: false,
outputHashing: "none",
generatePackageJson: true,
}),
Expand Down

0 comments on commit 2cd10e9

Please sign in to comment.