Run the site without Docker
Install and start the site with Node.js and Yarn.
Before you start: install Node.js 22 or newer.
View requirementsOpen a terminal inside the landing-page-template-3 folder, the one with package.json at its top.
Start the development server
Install the dependencies
corepack enablelets the Yarn 4 version pinned inpackage.jsonanswer theyarncommand. The install followsyarn.lock, so you get the exact versions the template was tested with.Having trouble?Terminalinlanding-page-template-3corepack enable yarn installStart it
No
.envfile is needed.Terminalinlanding-page-template-3yarn devA port is already in use?
If it stops with
A port is already in useEADDRINUSE, another program uses port 3030. Stop it, or start on another port withyarn dev -p 3041and open localhost:3041Local.Expected result: localhost:3030Local opens the site in English; Arabic is at
Having trouble?/ar. The page reloads as you edit.
Run the production build
The production build is what you deploy. Build once, then serve it:
landing-page-template-3yarn build
yarn startIt is served on localhost:3030Local too, and yarn start -p 3041 serves it on another port. Build again after every change.
Set the site's address
Only for a build you put online. Copy .env.example to .env, set NEXT_PUBLIC_SITE_URL to your domain, then build again:
landing-page-template-3cp .env.example .envNEXT_PUBLIC_SITE_URL=https://www.your-domain.comEvery command
| Command | What it does |
|---|---|
yarn dev | Development server on port 3030, reloading as you edit |
yarn build | Production build |
yarn start | Serves the production build on port 3030 |
yarn lint | Checks the code with ESLint and the Next.js rules |
yarn typecheck | Checks the types with TypeScript |