This guide covers deploying FrontGuard to Vercel (recommended) and Netlify.
Vercel is built by the Next.js team. Zero configuration needed.
cd securitysystemapp
git init
git add .
git commit -m "feat: initial FrontGuard build"
git branch -M main
git remote add origin https://github.com/YOUR_USERNAME/frontguard.git
git push -u origin main- Go to vercel.com and sign in (free account is fine)
- Click "Add New Project"
- Click "Import Git Repository" → select your
frontguardrepo - Vercel auto-detects Next.js — no settings to change
- Click "Deploy"
That's it. Vercel will build and deploy in ~60 seconds.
Vercel gives you a URL like:
https://frontguard-yourname.vercel.app
Every future git push to main triggers an automatic redeploy.
FrontGuard requires no environment variables. If you extend the app later:
- Go to your project → Settings → Environment Variables
- Add variables as needed
- Redeploy
Create this file in your project root:
[build]
command = "npm run build"
publish = ".next"
[[plugins]]
package = "@netlify/plugin-nextjs"Install the Netlify Next.js plugin:
npm install -D @netlify/plugin-nextjs- Go to netlify.com → "Add new site" → "Import from Git"
- Select your repo
- Build command:
npm run build - Publish directory:
.next - Click "Deploy site"
# Clone the repo
git clone https://github.com/YOUR_USERNAME/frontguard.git
cd frontguard
# Install dependencies
npm install
# Start dev server
npm run dev
# Open in browser
open http://localhost:3000For a production build locally:
npm run build
npm startvercel.json and next.config.ts both apply these security headers to all routes:
| Header | Value | Purpose |
|---|---|---|
X-Content-Type-Options |
nosniff |
Prevents MIME sniffing |
X-Frame-Options |
DENY |
Prevents clickjacking |
X-XSS-Protection |
1; mode=block |
Legacy XSS filter |
Referrer-Policy |
strict-origin-when-cross-origin |
Controls referrer leakage |
Permissions-Policy |
camera=(), microphone=()... |
Disables unused browser APIs |
Once deployed, share these URLs:
| Page | Purpose |
|---|---|
/landing |
Public marketing page — share this with anyone |
/ |
App dashboard — links to all modules |
/xss |
XSS playground (start here) |
/auth |
Auth token simulation |
/api-security |
API security demo |
/rbac |
RBAC demo |
/devtools |
DevTools bypass demo |
- Add the live Vercel URL to your resume and LinkedIn
- Screenshot the landing page for your portfolio site
- In interviews, walk through the XSS module — it's the most visually dramatic
- The RBAC module is great for explaining frontend vs backend security tradeoffs
Build fails on Vercel?
- Make sure
node_modulesis in.gitignore - Run
npm run buildlocally first to catch errors
Fonts not loading?
- The app loads JetBrains Mono and Syne from Google Fonts via
<link>tags - If offline, the system monospace font is the fallback — it still looks fine
API routes returning 404?
- Vercel and Netlify both support Next.js API routes automatically
- Make sure you're not on a static export (
output: 'export') — the API routes require server-side rendering
Built by Zoriah Cocio · info@zoriahcocio.com