Skip to content

Commit

Permalink
Merge pull request #7 from Ahsankhalid618/deployment
Browse files Browse the repository at this point in the history
Proper CI/CD and Vercel Deployment workflow implemented
  • Loading branch information
iamkanhaiyakumar authored Oct 11, 2024
2 parents 582e7eb + eca28b4 commit 4c2f5d3
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 9 deletions.
5 changes: 1 addition & 4 deletions app/dashboard/history/page.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import Template from "@/app/(data)/Template";
import { Button } from "@/components/ui/button";
import { db } from "@/utils/db";
import { AIOutput } from "@/utils/schema";
import { currentUser } from '@clerk/nextjs/server'
import { desc, eq } from 'drizzle-orm';
import Image from "next/image";
import React from "react";
import { TEMPLATE } from "@/app/dashboard/_components/TemplateListSection";

export interface HISTORY{
forEach(arg0: (element: any) => void): unknown;
Expand Down Expand Up @@ -40,7 +37,7 @@ async function History(){
</div>
);
}

export default History;



Expand Down
2 changes: 1 addition & 1 deletion drizzle.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ export default {
schema: "./utils/schema.tsx",
dialect: 'postgresql',
dbCredentials: {
url:'postgresql://Resume%20Builder_owner:[email protected]/AI-Content-Generator?sslmode=require',
url: process.env.NEXT_PUBLIC_DATABASE_URL,
}
};
5 changes: 4 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
const nextConfig = {
images:{
domains:['cdn-icons-png.flaticon.com']
}
},
env: {
DATABASE_URL: process.env.NEXT_PUBLIC_DATABASE_URL,
},
};

export default nextConfig;
13 changes: 13 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"@toast-ui/react-editor": "^3.2.3",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"dotenv": "^16.4.5",
"drizzle-orm": "^0.33.0",
"lucide": "^0.445.0",
"lucide-react": "^0.445.0",
Expand Down
10 changes: 7 additions & 3 deletions utils/db.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import { neon } from '@neondatabase/serverless';
import { drizzle } from 'drizzle-orm/neon-http';
import * as schema from './schema'
const sql = neon(process.env.NEXT_PUBLIC_DRIZZLE_DB_UR!);
export const db = drizzle(sql,{schema});

// ... existing imports ...

const sql = neon(process.env.NEXT_PUBLIC_DATABASE_URL!);
export const db = drizzle(sql);

// ... rest of the file ...

0 comments on commit 4c2f5d3

Please sign in to comment.