Skip to content

Commit

Permalink
fix: heroku deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
ghoshnirmalya committed Jan 15, 2021
1 parent 6591b4b commit 65a6f9a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
3 changes: 0 additions & 3 deletions backend/.env.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
HASURA_GRAPHQL_ADMIN_SECRET=secret
PORT=8080
DATABASE_URL=postgresql://user:password@db:5432/database
POSTGRES_USER=user
POSTGRES_PASSWORD=password
POSTGRES_DB=database
5 changes: 4 additions & 1 deletion frontend/.env.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
NEXT_PUBLIC_API_URL=http://localhost:8080/v1/graphql
NEXT_PUBLIC_WS_URL=ws://localhost:8080/v1/graphql
DATABASE_URL=postgres://user:password@localhost:5432/database
DATABASE_USERNAME=user
DATABASE_PASSWORD=password
DATABASE_HOST=localhost
DATABASE_NAME=database
NEXTAUTH_URL=http://localhost:3000
GOOGLE_CLIENT_ID=""
GOOGLE_CLIENT_SECRET=""
15 changes: 14 additions & 1 deletion frontend/pages/api/auth/[...nextauth].ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,20 @@ const options = {
clientSecret: process.env.GOOGLE_CLIENT_SECRET,
}),
],
database: process.env.DATABASE_URL,
database: {
type: "postgres",
host: process.env.DATABASE_HOST,
port: 5432,
username: process.env.DATABASE_USERNAME,
password: process.env.DATABASE_PASSWORD,
database: process.env.DATABASE_NAME,
ssl: true,
extra: {
ssl: {
rejectUnauthorized: false,
},
},
},
session: {
jwt: true,
},
Expand Down

1 comment on commit 65a6f9a

@vercel
Copy link

@vercel vercel bot commented on 65a6f9a Jan 15, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.