Skip to content

Commit 099f9fb

Browse files
committed
fix: test baseurl 2
1 parent 5d2e080 commit 099f9fb

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

src/libs/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export const baseURL = () => {
22
const url =
33
process.env.NODE_ENV === "development"
44
? "http://localhost:3000"
5-
: "http://localhost:3000";
5+
: "http://172.17.0.2:3000";
66

77
// "http://ec2-3-137-182-223.us-east-2.compute.amazonaws.com/";
88

src/pages/index.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export default function Home() {
1010
>
1111
<div className="z-10 max-w-5xl w-full items-center justify-between font-mono text-sm text-neutral-400 lg:flex">
1212
<Link href="/chat">Play Game</Link>
13+
<Link href="/test">Test Page</Link>
1314
</div>
1415
</main>
1516
);

src/pages/test.tsx

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import Link from "next/link";
2+
3+
export default function TestPage() {
4+
return (
5+
<main
6+
className={`flex min-h-screen flex-col items-center justify-between bg-neutral-800 p-24`}
7+
>
8+
<div className="z-10 max-w-5xl w-full items-center justify-between font-mono text-sm text-neutral-400 lg:flex">
9+
This is test page
10+
<Link href="/chat">Play Game</Link>
11+
<Link href="/">Home</Link>
12+
</div>
13+
</main>
14+
);
15+
}

0 commit comments

Comments
 (0)