DEV3 Technologies home

DEV3 Developer Forum

How do I set up LUMIDENT on my server?

Product questionsSolved0 views

1 reply

dev3 · Accepted answer

Install

  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

    Open the address it prints and scroll through the twelve chapters.

  4. Optional checks: npm run lint and npx tsc --noEmit.

Build for production

npm run build
npm run start

next build creates an optimised production build and next start serves it.

Deploy to Vercel

  1. Push the folder 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 other Node.js host that supports Next.js works the same way: run npm run build, then npm run start.

Static export

The template can also be exported as plain HTML, CSS and JavaScript for a static host. next.config.ts switches to output: "export" when DEMO_EXPORT_BASE is set to the sub-path the site will be served from:

DEMO_EXPORT_BASE=/your-path npx next build

The files are written to out/; upload that folder to your host under the same path. To serve the export from the root of a domain instead, edit next.config.ts so the export settings apply without a basePath.

Do not use npm run build:demo for your own site: it is the script for DEV3's hosted demo and adds a "Get this template" badge.

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.