fix: minor
Release package / release (pull_request) Has been cancelled

This commit is contained in:
TakahashiNg
2026-04-19 08:39:45 +00:00
parent 96584c5494
commit d54585374b
2 changed files with 17 additions and 3 deletions
+5 -3
View File
@@ -6,7 +6,7 @@ import { SHOP_INFO } from "@/lib/constants";
import Image from "next/image";
import Link from "next/link";
import { useRouter } from "next/navigation";
import { FormEvent, useState } from "react";
import { SubmitEvent, useState } from "react";
// Static OTP for demo (in production, this would be sent via SMS)
const DEMO_OTP = "123456";
@@ -28,7 +28,7 @@ export default function RegisterPage() {
return phoneRegex.test(phoneNumber);
};
const handlePhoneSubmit = (e: FormEvent) => {
const handlePhoneSubmit = (e: SubmitEvent<HTMLFormElement>) => {
e.preventDefault();
if (!phone.trim()) {
@@ -44,12 +44,14 @@ export default function RegisterPage() {
return;
}
// Move to OTP step
setStep("otp");
setErrors({ phone: "", otp: "" });
};
const handleOtpSubmit = (e: FormEvent) => {
const handleOtpSubmit = (e: SubmitEvent<HTMLFormElement>) => {
e.preventDefault();
if (!otp.trim()) {
+12
View File
@@ -19,6 +19,18 @@ const nextConfig: NextConfig = {
},
],
},
async rewrites() {
const rewrites = [];
if (process.env.NODE_ENV !== "production") {
rewrites.push({
source: "/api/:path*",
destination: "http://host.docker.internal:32080/api/:path*",
});
}
return rewrites;
},
};
export default nextConfig;