Skip to Content
AdvancedDeployment

Deployment

Deploy your Sendd Market storefront to any hosting platform.

The fastest way to deploy is with Vercel:

npm install -g vercel vercel

Set 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-storefront

Self-Hosted

For self-hosted deployments:

  1. Build the application: npm run build
  2. Set environment variables on your server
  3. Start the application: npm start
  4. 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