Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
yadavshubham01 committed Nov 27, 2024
1 parent ad4f403 commit 7a97078
Show file tree
Hide file tree
Showing 7 changed files with 65 additions and 68 deletions.
1 change: 1 addition & 0 deletions components/ChooseTemplates.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const ChooseTemplates = ({ myResumes = false }: { myResumes?: boolean }) => {
const createUserResume = useMutation(api.resume.createUserResume);
const router = useRouter();
const templates = useQuery(api.resume.getTemplates);
console.log(templates)
const myResumeTemplates = useQuery(api.resume.getUserResumes, {
userId: user?.id || "",
});
Expand Down
6 changes: 4 additions & 2 deletions convex/auth.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
export default {
providers: [
{
domain: "https://sound-crab-61.clerk.accounts.dev/",
domain: "https://rested-albacore-8.clerk.accounts.dev",
applicationID: "convex",
},
]
};
};

/* */
3 changes: 2 additions & 1 deletion convex/resume.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export const updateHeader = mutation({
throw new Error("Something went wrong");
}


const identity = await ctx.auth.getUserIdentity();
if (!identity) {
throw new Error("Not authenticated");
Expand Down Expand Up @@ -150,7 +151,7 @@ export const updateExperience = mutation({
if (!resume) {
throw new Error("Something went wrong");
}

const identity = await ctx.auth.getUserIdentity();
if (!identity) {
throw new Error("Not authenticated");
Expand Down
12 changes: 12 additions & 0 deletions middleware.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { clerkMiddleware } from '@clerk/nextjs/server'

export default clerkMiddleware()

export const config = {
matcher: [
// Skip Next.js internals and all static files, unless found in search params
'/((?!_next|[^?]*\\.(?:html?|css|js(?!on)|jpe?g|webp|png|gif|svg|ttf|woff2?|ico|csv|docx?|xlsx?|zip|webmanifest)).*)',
// Always run for API routes
'/(api|trpc)(.*)',
],
}
9 changes: 8 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
/** @type {import('next').NextConfig} */
const nextConfig = {};
const nextConfig = {
typescript: {
ignoreBuildErrors: true,
},
eslint: {
ignoreDuringBuilds: true,
},
};

export default nextConfig;
100 changes: 37 additions & 63 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"lint": "next lint"
},
"dependencies": {
"@clerk/nextjs": "^5.1.6",
"@clerk/nextjs": "^5.7.5",
"@google/generative-ai": "^0.14.0",
"@radix-ui/react-checkbox": "^1.1.1",
"@radix-ui/react-dialog": "^1.1.1",
Expand Down

0 comments on commit 7a97078

Please sign in to comment.