Кіраванне файламі cookie, якія выкарыстоўваюцца для рэкламы, такіх як персаналізацыя рэкламы, рэмаркетынг і аналіз эфектыўнасці рэкламы.
2.10.3. Install and launch Next.js
Next.js — open source web development framework created by Vercel that allows you to build web apps based on React with server-side rendering and static site generation. Requires Node.js to work.
Install Next.js
- Install Next.js globally:
cd ~ mkdir .node cd .node npm install next - In the "Hosting account settings" section (or "Hosting → Hosting account settings"), add an alias with the name
nextand the value~/.node/node_modules/next/dist/bin/next.
Install simple app
- Go to site root directory:
cd ~/example.com/www - Install a simple app example (during installation, you can just press Enter for all prompts):
npx create-next-app@latest
Launch
- In the "Site settings" section, set the following settings:
- Web server — Node.js.
- Node.js version — 18 or higher.
- Traffic proxying — By IP address.
- Root directory — name of your app's directory (for example,
my-app).
- In the "Node.js settings" section, disable adding the
–hostand–portparameters to the launch command. - In your app's
package.jsonfile, in thescriptsection, specify thestartcommand asnext start --hostname 127.*.*.*(specifying the desired IP). - Launch the app and check its operation.
(8)