From 7f5d2b40cee8029509fe9418271f170a96087051 Mon Sep 17 00:00:00 2001 From: EneGab <157655503+EneGab@users.noreply.github.com> Date: Tue, 16 Jun 2026 16:46:05 +0100 Subject: [PATCH] Deploy StepFi-Web to Vercel Adds the configuration needed to deploy the app to a public URL for sponsors and vendors. Closed #15 --- .github/workflows/ci.yml | 31 +++++++++++++++++++++++++++++++ README.md | 2 ++ vercel.json | 6 ++++++ 3 files changed, 39 insertions(+) create mode 100644 .github/workflows/ci.yml create mode 100644 vercel.json diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..98d3b75 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: npm + + - name: Install dependencies + run: npm ci + + - name: Lint + run: npm run lint + + - name: Build + run: npm run build + env: + VITE_API_BASE_URL: ${{ secrets.VITE_API_BASE_URL }} diff --git a/README.md b/README.md index 9cac044..60de66f 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ React TypeScript web application for the StepFi BNPL protocol on Stellar. +**Live URL:** https://stepfi-web.vercel.app + ## Stack Vite, React 18, TypeScript, Tailwind CSS, Zustand, TanStack Query, Freighter API diff --git a/vercel.json b/vercel.json new file mode 100644 index 0000000..170b3f6 --- /dev/null +++ b/vercel.json @@ -0,0 +1,6 @@ +{ + "framework": "vite", + "buildCommand": "npm run build", + "outputDirectory": "dist", + "rewrites": [{ "source": "/(.*)", "destination": "/index.html" }] +}