Skip to content
FEMNET

Deploy the learner app and hub

Build and run the two Next.js applications.

IT teamDone in: Server5 steps
  1. 1

    Set the API address

    In each app, set NEXT_PUBLIC_API_BASE_URL to the API, for example https://femnet-api.duckdns.org/api/v1, in .env or your host's environment settings. It is baked in at build time.

  2. 2

    Build

    Use Node.js 20 or newer. In femnet-lms-fend run pnpm install then pnpm build. In femnet-facilitator-fend run the same commands.

  3. 3

    Run

    Start each app with pnpm start behind your web server or process manager, or deploy it to a Next.js host. Each app needs its own domain with HTTPS.

  4. 4

    Allow the domains on the backend

    Add both domains to DJANGO_CORS_ALLOWED_ORIGINS and DJANGO_CSRF_TRUSTED_ORIGINS, and set SHOP_CALLBACK_URL to https://<learner-app-domain>/shop/checkout/return. Restart the backend.

  5. 5

    Check

    Sign in to both apps. Learners need to reload the installed app once to get the new version.

Related how-tos