Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: corrected all env urls #46

Merged
merged 1 commit into from
Apr 2, 2024
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
7 changes: 7 additions & 0 deletions .env.development
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
JWT_SECRET="2b343f1ffd059864aecfeb590a973e8e29c5914b6a30d1245ad1ef2e0c280c47"
JWT_EXPIRATION_MS=60000
JWT_REFRESH_EXPIRATION_MS=1209600000
REFRESH_DOMAIN="/refresh"
FRONTEND_DOMAIN="http://localhost:3000"
BACKEND_DOMAIN="https://meetmate.bencodes.de"
GRAPHQL_URL="http://localhost:8080/graphql"
File renamed without changes.
2 changes: 1 addition & 1 deletion src/lib/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export async function refreshAccessToken() {
// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
export async function getUser(): Promise<User | null> {
try {
const response = await fetch("http://localhost:3000/api/user/get", {
const response = await fetch(process.env.FRONTEND_DOMAIN + "/api/user/get", {
method: "GET",
headers: {
"Content-Type": "application/json;charset=UTF-8",
Expand Down
Loading