Skip to content

Commit

Permalink
chore: rename akashlytics to console
Browse files Browse the repository at this point in the history
  • Loading branch information
baktun14 committed Sep 13, 2024
1 parent 016d5bb commit 418d1d1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion apps/api/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const appHono = new Hono();
appHono.use(
"/*",
cors({
origin: env.AKASHLYTICS_CORS_WEBSITE_URLS?.split(",") || ["http://localhost:3000", "http://localhost:3001"]
origin: env.CONSOLE_CORS_WEBSITE_URLS?.split(",") || ["http://localhost:3000", "http://localhost:3001"]
})
);

Expand Down
4 changes: 2 additions & 2 deletions apps/api/src/services/external/githubService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import { Auditor, ProviderAttributesSchema } from "@src/types/provider";
import { env } from "@src/utils/env";

export function getOctokit() {
const githubPAT = env.AKASHLYTICS_GITHUB_PAT;
const githubPAT = env.CONSOLE_GITHUB_PAT;

if (!githubPAT) {
throw new Error("AKASHLYTICS_GITHUB_PAT is missing");
throw new Error("CONSOLE_GITHUB_PAT is missing");
}

return new Octokit({
Expand Down
2 changes: 1 addition & 1 deletion apps/api/src/utils/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const env = z
NETWORK: z.string().default("mainnet"),
REST_API_NODE_URL: z.string().optional(),
SERVER_ORIGIN: z.string().optional().default("http://localhost:3080"),
AKASHLYTICS_GITHUB_PAT: z.string().optional(),
CONSOLE_GITHUB_PAT: z.string().optional(),
AUTH0_JWKS_URI: z.string().optional(),
AUTH0_AUDIENCE: z.string().optional(),
AUTH0_ISSUER: z.string().optional(),
Expand Down
2 changes: 1 addition & 1 deletion apps/api/src/utils/templateReposLogos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export function getLogoFromPath(path: string) {
return path in logos ? logoBaseUrl + logos[path] : null;
}

const logoBaseUrl = "https://storage.googleapis.com/akashlytics-deploy-public/template_logos/";
const logoBaseUrl = "https://storage.googleapis.com/console-deploy-public/template_logos/";
const logos: { [key: string]: string } = {
"speedtest-cli": "speedtest-by-ookla.jpg",
fast: "fast.svg",
Expand Down

0 comments on commit 418d1d1

Please sign in to comment.