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 Jul 11, 2024
1 parent accf05a commit a2518ee
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion apps/api/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,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.AkashlyticsGithubPAT;
const githubPAT = env.ConsoleGithubPAT;

if (!githubPAT) {
throw new Error("AkashlyticsGithubPAT is missing");
throw new Error("ConsoleGithubPAT is missing");
}

return new Octokit({
Expand Down
4 changes: 2 additions & 2 deletions apps/api/src/utils/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ dotenv.config();
export const env = z
.object({
SentryDSN: z.string().optional(),
AKASHLYTICS_CORS_WEBSITE_URLS: z.string().optional(),
CONSOLE_CORS_WEBSITE_URLS: z.string().optional(),
NODE_ENV: z.string().optional(),
SentryServerName: z.string().optional(),
HealthchecksEnabled: z.string().optional(),
Expand All @@ -18,7 +18,7 @@ export const env = z
Network: z.string().default("mainnet"),
RestApiNodeUrl: z.string().optional(),
ServerOrigin: z.string().optional().default("http://localhost:3080"),
AkashlyticsGithubPAT: z.string().optional(),
ConsoleGithubPAT: z.string().optional(),
Auth0JWKSUri: z.string().optional(),
Auth0Audience: z.string().optional(),
Auth0Issuer: 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 a2518ee

Please sign in to comment.