Compare commits
2 Commits
309b70ece4
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 0cb4b19bc8 | |||
| 321fe77107 |
@@ -2,6 +2,7 @@ import { redirect } from "next/navigation";
|
|||||||
|
|
||||||
import { auth } from "@/auth";
|
import { auth } from "@/auth";
|
||||||
import { Button } from "@/components/ui/button";
|
import { Button } from "@/components/ui/button";
|
||||||
|
import { APP_VERSION } from "@/lib/version";
|
||||||
|
|
||||||
import { loginAction } from "./actions";
|
import { loginAction } from "./actions";
|
||||||
|
|
||||||
@@ -27,7 +28,10 @@ export default async function LoginPage({ searchParams }: LoginPageProps) {
|
|||||||
<main className="flex min-h-screen items-center justify-center bg-muted px-6 py-10">
|
<main className="flex min-h-screen items-center justify-center bg-muted px-6 py-10">
|
||||||
<section className="w-full max-w-md rounded-lg border bg-background p-8 shadow-sm">
|
<section className="w-full max-w-md rounded-lg border bg-background p-8 shadow-sm">
|
||||||
<div className="mb-8">
|
<div className="mb-8">
|
||||||
|
<div className="flex items-baseline justify-between gap-3">
|
||||||
<h1 className="text-2xl font-semibold tracking-normal">chocoadmin</h1>
|
<h1 className="text-2xl font-semibold tracking-normal">chocoadmin</h1>
|
||||||
|
<span className="font-mono text-xs text-muted-foreground">{APP_VERSION}</span>
|
||||||
|
</div>
|
||||||
<p className="mt-2 text-sm text-muted-foreground">관리자 로그인</p>
|
<p className="mt-2 text-sm text-muted-foreground">관리자 로그인</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -17,6 +17,8 @@ services:
|
|||||||
PORT: 3000
|
PORT: 3000
|
||||||
HOSTNAME: 0.0.0.0
|
HOSTNAME: 0.0.0.0
|
||||||
TZ: Asia/Seoul
|
TZ: Asia/Seoul
|
||||||
|
ports:
|
||||||
|
- "0.0.0.0:30011:3000"
|
||||||
networks:
|
networks:
|
||||||
- proxy-network
|
- proxy-network
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
import pkg from "@/package.json";
|
||||||
|
|
||||||
|
export const APP_VERSION = `v${pkg.version}`;
|
||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "chocoadmin",
|
"name": "chocoadmin",
|
||||||
"version": "0.1.0",
|
"version": "1.0.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"packageManager": "pnpm@10.29.3",
|
"packageManager": "pnpm@10.29.3",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user