diff --git a/.env b/.env index 4b601bd..191397f 100644 --- a/.env +++ b/.env @@ -1,7 +1,7 @@ NEXT_PUBLIC_API_URL="https://api.wiiqare.com" CALLBACK_URL="https://app.wiiqare.com" -NEXTAUTH_URL=https://app.wiiqare.com +NEXTAUTH_URL=http://localhost:3000 NEXT_PUBLIC_GOOGLE_CLIENT_ID=89089276805-85nh0ek1kac55o2t5lo0gn0jr77cppsb.apps.googleusercontent.com GOOGLE_CLIENT_SECRET=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 diff --git a/next.config.js b/next.config.js index 332b447..001425c 100644 --- a/next.config.js +++ b/next.config.js @@ -17,8 +17,8 @@ const nextConfig = withPWA({ env: { NEXT_PUBLIC_API_URL: 'https://api.wiiqare.com', //NEXT_PUBLIC_API_URL: 'http://localhost:3001', - //NEXT_PUBLIC_BASE_URL: 'http://localhost:3000', - NEXT_PUBLIC_BASE_URL: 'https://app.wiiqare.com', + NEXT_PUBLIC_BASE_URL: 'http://localhost:3000', + //NEXT_PUBLIC_BASE_URL: 'https://app.wiiqare.com', NEXTAUTH_URL: 'https://app.wiiqare.com', }, }); diff --git a/pages/voucher/pass/[pass].js b/pages/voucher/pass/[pass].js index 1640ae6..4f7561b 100644 --- a/pages/voucher/pass/[pass].js +++ b/pages/voucher/pass/[pass].js @@ -22,6 +22,8 @@ function Pass() { `/payment/voucher?paymentId=${pass}`, ); + console.log(data); + if (isLoading) return ( <> @@ -70,107 +72,209 @@ function Pass() { return (