Skip to main content
Deploy S4Kit to SAP BTP Cloud Foundry for scalable, production-ready hosting.

Prerequisites

  • Cloud Foundry CLI installed
  • Logged in: cf login
  • Target set: cf target -o <org> -s <space>

Architecture

ApplicationPurposePort
s4kit-backendAdmin API + Auth8080
s4kit-proxySDK proxy service8080
s4kit-frontendNext.js dashboard8080
All apps use the Bun buildpack.

Deployment

1

Create Services

2

Deploy Apps

3

Verify

Configuration

VariableDefaultDescription
MODEselfhostselfhost or saas (multi-tenant)
FRONTEND_URLmanifestFrontend URL for CORS
COOKIE_DOMAINautoCross-subdomain cookies

Scaling

XSUAA (SAP Identity)

Role templates: S4KitOwner, S4KitAdmin, S4KitDeveloper

Troubleshooting

IssueSolution
Module errorscf restage s4kit-backend --no-cache
Redis refusedCheck cf env s4kit-backend | grep redis
Cookie issuesSet COOKIE_DOMAIN manually
Wrong API URLRebuild frontend with correct NEXT_PUBLIC_API_URL

Full CF Guide

Complete Cloud Foundry deployment guide →