I downloaded FORMA. What are the installation steps?
#installation#3d-ecommerce#product-configurator#nextjs#react-three-fiber
DEV3 Developer Forum
Every post is reviewed first. Usually reviewed within 24 hours.
I downloaded FORMA. What are the installation steps?
#installation#3d-ecommerce#product-configurator#nextjs#react-three-fiber
Install and run
Download the ZIP from your DEV3 account and unzip it.
Open a terminal in the unzipped folder and install the dependencies:
npm install
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.
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
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.