aboutsummaryrefslogtreecommitdiff
path: root/pages/profile
diff options
context:
space:
mode:
authorFactiven <[email protected]>2023-04-17 13:53:51 +0700
committerFactiven <[email protected]>2023-04-17 13:53:51 +0700
commita6d24eb649b6720bf176fe7a08b25d4480f99908 (patch)
tree4b72ebb5cea98649691778b3b81749c4894376be /pages/profile
parentSnapshot Moopa v3.2 (diff)
downloadmoopa-a6d24eb649b6720bf176fe7a08b25d4480f99908.tar.xz
moopa-a6d24eb649b6720bf176fe7a08b25d4480f99908.zip
1st fixes
Diffstat (limited to 'pages/profile')
-rw-r--r--pages/profile/[user].js4
1 files changed, 1 insertions, 3 deletions
diff --git a/pages/profile/[user].js b/pages/profile/[user].js
index b40c41a..3cff4bd 100644
--- a/pages/profile/[user].js
+++ b/pages/profile/[user].js
@@ -1,5 +1,3 @@
-const baseUrl = process.env.NEXT_PUBLIC_BASE_URL || "http://localhost:3000";
-
import { getServerSession } from "next-auth";
import { authOptions } from "../api/auth/[...nextauth]";
import Navbar from "../../components/navbar";
@@ -301,7 +299,7 @@ export async function getServerSideProps(context) {
const session = await getServerSession(context.req, context.res, authOptions);
const query = context.query;
- const res = await fetch(`${baseUrl}/api/get-media`, {
+ const res = await fetch(`/api/get-media`, {
method: "POST",
body: JSON.stringify({
username: query.user,