Deployment
Deploy your Sendd Market storefront to any hosting platform.
Vercel (Recommended)
The fastest way to deploy is with Vercel:
npm install -g vercel
vercelSet your environment variables in the Vercel dashboard under Settings → Environment Variables.
Docker
Use the official Docker image:
FROM node:20-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
FROM node:20-alpine
WORKDIR /app
COPY --from=builder /app/.next ./.next
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/package.json ./
EXPOSE 3000
CMD ["npm", "start"]Build and run:
docker build -t sendd-storefront .
docker run -p 3000:3000 --env-file .env sendd-storefrontSelf-Hosted
For self-hosted deployments:
- Build the application:
npm run build - Set environment variables on your server
- Start the application:
npm start - Configure a reverse proxy (nginx, Caddy) for SSL termination
CI/CD
Example GitHub Actions workflow:
name: Deploy
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm run build
- run: npm start