# ๐Ÿš€ Deploy to Vercel โ€” The Super Easy Guide **Step-by-step for non-technical people. You're already logged in. Just 5 more steps to go!** > โฑ๏ธ **Time needed:** ~5 minutes > ๐Ÿ’ฐ **Cost:** $0 (free tier โ€” never charged) > โœ… **Status:** You're already logged in to Vercel โœ“ --- ## ๐ŸŽฏ What is Vercel and why do I need it? In plain English: **Vercel is where your website lives on the internet.** Think of it like this: - Supabase = the database (where data is stored) ๐Ÿ—„๏ธ - Vercel = the website host (where people visit your site) ๐ŸŒ When someone types your URL into a browser, Vercel shows them your app. **You only need to do this ONCE. After that, every time you update the code, Vercel automatically deploys the new version.** --- ## ๐Ÿ›ฃ๏ธ The 5 Steps (At a Glance) ``` โœ… Step 0: Log in to Vercel [DONE!] Step 1: Create a new project on Vercel [1 minute] Step 2: Import the Easypeasy Feaso code [1 minute] Step 3: Add 3 environment variables [2 minutes] Step 4: Click Deploy [2 minutes] Step 5: Visit your live site! [30 seconds] ``` **Total: ~5 minutes. โ˜• You're almost there!** --- # Step 1: Create a New Project on Vercel ๐Ÿ†• ## What to do: 1. You should be on the Vercel dashboard (the page that loads after you log in) 2. Look for a button that says **"Add New..."** (top right corner, or in the middle of the page) 3. **Click "Add New..."** 4. A dropdown will appear. **Click "Project"** ## What you'll see: Either: - A "Let's build something new" page with a big "Continue" button, OR - A "Import Git Repository" page (this is what you want โ€” proceed to Step 2) > ๐Ÿ’ก **Can't find "Add New..."?** Look for a plus icon `+` instead, or a button that says "New Project" or "Deploy". --- # Step 2: Import the Easypeasy Feaso Code ๐Ÿ“ฆ You have 3 options here. **Pick the easiest one for you:** ## Option A: Import from GitHub (Easiest if you have the code on GitHub) 1. On the "Import Git Repository" page, you'll see a search box 2. **Type: `easypeasy-feaso`** in the search box 3. **Click on the repository** when it appears in the list 4. **Click "Import"** next to it ## Option B: Deploy from a Template (Easiest for testing) 1. On the Vercel dashboard, click **"Add New..." โ†’ "Project"** 2. Look for a section called **"Clone Template"** or **"Deploy a Template"** 3. Pick a template (e.g., "Next.js Boilerplate") โ€” this is just a placeholder 4. **Click "Deploy"** to use the template > ๐Ÿ’ก **Why this works:** We'll replace the template with your Easypeasy Feaso code in Step 3. ## Option C: Drag and Drop the Folder (No GitHub needed) 1. On the Vercel dashboard, click **"Add New..." โ†’ "Project"** 2. Look for a section that says **"Import"** or **"Deploy from..."** 3. If you see a drag-and-drop area, you can drag your Easypeasy Feaso folder there > ๐Ÿ’ก **Don't have the folder?** Skip to the next step โ€” Vercel can create a starter project and you can configure it. ## What to click: - **"Import"** next to the easypeasy-feaso repository (if you have it on GitHub) - **OR "Deploy"** if you're using a template --- # Step 3: Add 3 Environment Variables ๐Ÿ”‘ (The Most Important Step!) This is the critical step where you paste the 3 codes you saved from Supabase. ## Setup: 1. **Open your text file `supabase-codes.txt`** (the one you created when setting up Supabase) 2. Keep it open โ€” you'll be copying 3 things from it ## What to do: 1. On the Vercel project setup page, you'll see several sections 2. **Find the section called "Environment Variables"** (it might say "Configure Project") 3. You're going to add 3 variables. For each one: ### Variable 1: NEXT_PUBLIC_SUPABASE_URL 1. In the **"Key"** field, type: `NEXT_PUBLIC_SUPABASE_URL` 2. In the **"Value"** field, paste: `https://YOUR-PROJECT.supabase.co` (Replace `YOUR-PROJECT.supabase.co` with your actual URL from the text file) 3. **Click "Add"** or the `+` button ### Variable 2: NEXT_PUBLIC_SUPABASE_ANON_KEY 1. **Click "Add Another"** or the `+` button 2. In the **"Key"** field, type: `NEXT_PUBLIC_SUPABASE_ANON_KEY` 3. In the **"Value"** field, paste your actual anon key (the long string starting with `eyJ...`) 4. **Click "Add"** ### Variable 3: SUPABASE_SERVICE_ROLE_KEY 1. **Click "Add Another"** 2. In the **"Key"** field, type: `SUPABASE_SERVICE_ROLE_KEY` 3. In the **"Value"** field, paste your actual service_role key (the other long string starting with `eyJ...`) 4. **Click "Add"** ## What you'll see: A list of 3 environment variables, each with a key (name) and value (long code). ## What to click: - Click the `+` or "Add" button to add each one - Make sure the keys are EXACTLY: - `NEXT_PUBLIC_SUPABASE_URL` (case-sensitive) - `NEXT_PUBLIC_SUPABASE_ANON_KEY` (case-sensitive) - `SUPABASE_SERVICE_ROLE_KEY` (case-sensitive) > ๐Ÿ’ก **Spelling matters!** If you type `next_public_supabase_url` (lowercase), it won't work. The names must be EXACTLY as shown. > ๐Ÿ’ก **Three variables look the same?** They're case-sensitive and order matters. Double-check the spelling. > โš ๏ธ **Keep these secret!** The service_role key especially should NEVER be shared publicly. Vercel encrypts it for you. --- # Step 4: Click Deploy! ๐Ÿš€ This is the moment of truth! You're about to make your app live on the internet. ## What to do: 1. Scroll down to the bottom of the page 2. You'll see a big button that says **"Deploy"** 3. **Click "Deploy"** ## What you'll see: - A build log with lots of scrolling text - A progress bar or status messages - This takes 1-3 minutes ## What to click: Just wait! Don't refresh the page. Don't close the tab. > โฐ **Wait 1-3 minutes.** Vercel is building your app. This involves: > - Downloading the code > - Installing dependencies > - Building the website > - Deploying it to their servers > ๐Ÿ’ก **Got an error?** Common issues: > - "Build failed" โ€” usually a typo in the environment variable names. Go back to Step 3. > - "Module not found" โ€” try again, sometimes Vercel has a hiccup. > - "Timeout" โ€” wait 30 seconds and try again. ## What you'll see when it's done: - A ๐ŸŽ‰ celebration screen - A preview of your website - A URL like `https://easypeasy-feaso-abc123.vercel.app` ### โœ… Checkpoint You should see a "Congratulations!" or ๐ŸŽ‰ screen with your live URL. --- # Step 5: Visit Your Live Site! ๐ŸŒ You're done! Let's see your site in action. ## What to do: 1. **Click the URL** Vercel gave you (e.g., `https://easypeasy-feaso-abc123.vercel.app`) 2. OR copy the URL and paste it into a new browser tab 3. Your Easypeasy Feaso app should load! ## What you'll see: - The Easypeasy Feaso homepage - A "Sign Up" or "Get Started" button - The futuristic UI you designed ## Try this: 1. **Click "Sign Up"** 2. Create a test account (use your real email so you can verify) 3. Check that you can: - Sign in - Create a project - See your project saved - Sign out - Sign back in (and your project is still there โ€” that means Supabase is working!) ### โœ… Final Checkpoint You can: - โœ… Visit your live URL - โœ… Sign up with email - โœ… Sign in - โœ… Create and save a project - โœ… Sign out and back in (data persists) **If all of the above work โ€” congratulations! Your app is live! ๐ŸŽ‰** --- # ๐ŸŽ‰ What You Accomplished In the last 5 minutes, you: - โœ… Connected Vercel to your code - โœ… Added 3 environment variables (Supabase credentials) - โœ… Deployed your app to the internet - โœ… Have a live URL anyone can visit **Your app is now live on the internet. Forever. For free.** --- # ๐Ÿ†˜ Troubleshooting ### "I clicked Deploy but got a 'Build failed' error" 1. Click "View Build Logs" (or similar) 2. Look for red text at the bottom โ€” that's the error 3. Common cause: typo in environment variable names 4. Go back to Step 3, fix the typo, and click "Redeploy" ### "My site loads but I can't sign up" 1. Check that you added all 3 environment variables correctly 2. Make sure the Supabase URL doesn't have extra spaces 3. Check your Supabase project is fully set up (you did the Supabase guide, right?) 4. Try a hard refresh: Ctrl+Shift+R (Windows) or Cmd+Shift+R (Mac) ### "The deploy was successful but the page is blank" 1. Wait 30 seconds โ€” sometimes it takes a moment to warm up 2. Hard refresh: Ctrl+Shift+R or Cmd+Shift+R 3. Check the browser console (F12) for errors ### "I forgot to add the environment variables" 1. Go to your Vercel project dashboard 2. Click "Settings" (top menu) 3. Click "Environment Variables" (left menu) 4. Add the 3 variables (same as Step 3) 5. Click "Save" 6. Go to "Deployments" tab 7. Click the 3 dots next to the latest deployment โ†’ "Redeploy" ### "How much does this cost?" **$0.** Vercel's free tier ("Hobby" plan) includes: - 100 GB bandwidth per month - Unlimited static sites - Automatic HTTPS - Custom domains - Automatic deploys from Git You only need to upgrade if you grow past those limits. ### "Can I use my own domain name (e.g., mycompany.com)?" Yes! See the `DEPLOY.md` guide, Part 4: Custom Domain. It's a 10-minute process. --- ## ๐Ÿ†˜ Still stuck? **Common Vercel support channels:** - ๐Ÿ“– Vercel docs: https://vercel.com/docs - ๐Ÿ’ฌ Vercel Discord: https://vercel.com/discord - ๐Ÿฆ Vercel Twitter: @vercel **For Easypeasy Feaso specifically:** - Open an issue on GitHub - Email: support@easyfeaso.com.au - Visit `/setup` in the app for a guided walkthrough --- ## ๐ŸŽฏ What's Next? Now that your app is live, you can: 1. **๐Ÿ“ฑ Share your URL** with anyone โ€” they can sign up and use the app 2. **๐Ÿ”’ Add a custom domain** (optional) โ€” Part 4 of DEPLOY.md 3. **๐Ÿ’ณ Set up payments** โ€” Stripe integration guide 4. **๐Ÿ“Š Monitor usage** โ€” Vercel Analytics + Supabase Dashboard 5. **๐Ÿš€ Push updates** โ€” connect GitHub for automatic deploys **For now: celebrate! You just deployed an app to the internet. โ˜•** --- **Made with โค๏ธ by Globalcsm Pty Ltd ยท ABN 14 127 573 219 ยท Sydney NSW**