Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ AUTH0_BASE_URL=http://localhost:3000
AUTH0_ISSUER_BASE_URL=<base_url>
AUTH0_CLIENT_ID=<client id>
AUTH0_CLIENT_SECRET=<client secret>
NEXT_PUBLIC_APP_URL=http://localhost:3000
MONGODB_URI=<mongodb uri>
7 changes: 0 additions & 7 deletions lib/api.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
import axios from 'redaxios';

let APP_URL = process.env.NEXT_PUBLIC_APP_URL;

if (!/^https?:\/\//i.test(APP_URL)) {
APP_URL = 'http://' + APP_URL;
}

const API = axios.create({
baseURL: `${APP_URL}`,
responseType: 'json',
headers: {
'Content-Type': 'application/json'
Expand Down