Skip to content

Commit 81326ea

Browse files
authored
remove second register, fix path (#649)
1 parent c71d83a commit 81326ea

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

apps/frontend/app/(website)/studio/main/modGPT/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ const prodGptServer = shouldUseCodemodAi
2222
? "https://backend.codemod.com/modgpt"
2323
: "https://backend.codemod.com";
2424
export const modGptServer = `${
25-
shouldUseCodemodAi ? "http://0.0.0.0:9999" : prodGptServer
25+
isDevelopment ? "http://0.0.0.0:9999" : prodGptServer
2626
}/${SEND_CHAT}`;

apps/modgpt/src/routes/index.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,6 @@ export const protectedRoutes: FastifyPluginCallback = (
2727
_opts,
2828
done,
2929
) => {
30-
if (areClerkKeysSet(environment)) {
31-
const clerkOptions = {
32-
publishableKey: environment.CLERK_PUBLISH_KEY,
33-
secretKey: environment.CLERK_SECRET_KEY,
34-
jwtKey: environment.CLERK_JWT_KEY,
35-
};
36-
37-
instance.register(clerkPlugin, clerkOptions);
38-
} else {
39-
console.warn("No Clerk keys set. Authentication is disabled.");
40-
}
41-
4230
if (!isDevelopment) getSendChatPath(fastify);
4331
done();
4432
};

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy