Resolve Next.js/Supabase/Stripe Issues

Job ID: 40099667

Budget: $10 – $30 USD

Description:
I have a Next.js 14 (App Router) web app (“ProffTrading”) using Supabase Auth (Google OAuth) and Stripe Checkout (subscriptions). I need an experienced developer to fix build errors and make the login/pricing/checkout flow correct and reliable.

Goals / Requirements:

Fix build error: ReferenceError: module is not defined in ES module scope related to ESM/CommonJS config (PostCSS/Tailwind/Next config).

Google OAuth redirect: After Google login, users land on the wrong page (landing page). It must always redirect correctly using next=/dashboard or next=/checkout?tier=....

Pricing → Checkout: When a user selects a tier on /pricing, it must go to Stripe checkout (not just /login).

If not logged in: redirect to /login?next=/checkout?tier=...

Signup tier flow: /signup?tier=diamond should include a “Change plan” action that shows a tier selector (without sending users to the wrong page).

Middleware rules: /pricing must be public. Protected routes must redirect to login with a next parameter.

UI must remain English-only.

Privacy/Confidentiality: Project is private. No sharing, no publishing, no re-use, no watermarks.

Tech stack:

Next.js 14 (App Router)

Supabase Auth (Google OAuth)

Stripe subscriptions (Checkout)

Tailwind CSS

Deliverables:

PR (preferred) or patch with changes

Short summary of what was changed and why

App must build cleanly and the full flow above must work end-to-end

Access:
I can provide a private GitHub repo or a zip. I test locally on Windows.

Short message to send to candidates (copy/paste)

Hi! I’m hiring for a Next.js 14 App Router project using Supabase Google OAuth + Stripe subscriptions.
Main issues: ESM/CommonJS build error (module is not defined), wrong OAuth redirect after Google login, and pricing → checkout tier flow.
Have you worked with Supabase SSR cookies/session in App Router and Stripe Checkout subscriptions? Can you deliver via PR?

If you want, paste the platform you’re using (Upwork/Fiverr/etc.) and I’ll tailor the post to that format (title length, tags/keywords, screening questions).www.profftrading.com