Search Documentation
Search for a documentation page...
Deployment
Deploy your YNS storefront to Vercel or other hosting platforms.
Deploy to Vercel
The recommended way to deploy your storefront is with Vercel.
One-Click Deploy
Use the deploy button in the storefront repository to deploy directly from GitHub.
CLI Deploy
Set your environment variables in the Vercel dashboard:
- Go to your project Settings > Environment Variables
- Add
YNS_API_KEYwith your production API key - Redeploy
Git Integration
Connect your GitHub repository to Vercel for automatic deployments on every push:
- Import your repo at vercel.com/new
- Add
YNS_API_KEYduring setup - Deploy
Every push to main triggers a production deployment. Pull requests get preview deployments automatically.
Custom Domain
In your Vercel project settings:
- Go to Settings > Domains
- Add your custom domain
- Update your DNS records as instructed
Environment Variables
For production, set these in your hosting platform:
| Variable | Value |
|---|---|
YNS_API_KEY | Your production API key (sk-...) |
Other Platforms
The storefront is a standard Next.js application. It can be deployed to any platform that supports Next.js:
- Netlify — use the Next.js adapter
- AWS Amplify — supports Next.js natively
- Self-hosted — run
npm run build && npm start