DEV3 Technologies home

DEV3 Developer Forum

How do I set up FORMA on my server?

Product questionsSolved0 views

1 reply

dev3 · Accepted answer

Install and run

  1. Download the ZIP from your DEV3 account and unzip it.

  2. Open a terminal in the unzipped folder and install the dependencies:

    npm install
  3. Start the development server:

    npm run dev

    The dev script listens on port 3220; open the address it prints in your browser and scroll through the 3D home page.

  4. Optional checks before you change anything:

    npm run typecheck && npm run lint

Build for production

npm run build
npm run start

npm run build creates an optimised Next.js build, and npm run start serves it.

Deploy to Vercel

  1. Push the project to a Git repository (GitHub, GitLab or Bitbucket).
  2. In Vercel, choose Add New → Project, import the repository and keep the detected Next.js settings.
  3. Click Deploy. No environment variables are required.

Any host that runs Node.js (a VPS, Render, Railway, Netlify with the Next.js runtime) works the same way: run npm run build, then npm run start.

Static export

FORMA can be exported as plain static files for any static host or CDN. next.config.ts switches to output: "export" when DEMO_EXPORT_BASE is set to the sub-path the site will live under, for example:

DEMO_EXPORT_BASE=/shop-demo npm run build

The site is written to out/; upload that folder to the matching path. To export to the root of a domain, set output: "export", trailingSlash: true and images: { unoptimized: true } in next.config.ts and run npm run build. The included build:demo script is the one used for our public live demo; edit its values before you use it.

0

Your reply

Every post is reviewed by DEV3 before it appears. Usually reviewed within 24 hours.

Markdown supported. Use ``` for code blocks. Images are not allowed.