Skip to content
Merged
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
5 changes: 4 additions & 1 deletion labman/src/app/(auth)/login/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ export default function Home() {
const [username, setUsername] = useState("");
const [password, setPassword] = useState("");

const version = process.env.NEXT_PUBLIC_VERSION;
const env = process.env.NEXT_PUBLIC_ENV;

async function handleSubmit(e: React.FormEvent) {
e.preventDefault();
const res = await fetch("/api/login", {
Expand Down Expand Up @@ -42,7 +45,7 @@ export default function Home() {
</form>
</div>
</div>
<p className={"text-gray-300 text-2xl mb-3 ml-3 fixed bottom-0"}>{process.env.NEXT_PUBLIC_VERSION}</p>
<p className={"text-gray-300 text-2xl mb-3 ml-3 fixed bottom-0"}>{version}-{env}</p>
</>


Expand Down
Loading