- node: 18.16.0
- npm: ...
- yarn: 1.22.19
- next: 13.4.1
- react: 18.2.0
- node: 17.1.0
- npm
- next: 13.3.0
- react: 18.2.0
make init-app
-
nume app: 'app' [specificat in Makefile, se va crea si folderul]
-
se va selecta: - No - TypeScript - Yes - ESLint [nu e neaparat] - Yes -
src/
directory - Yes - Use App Router (recommended) - NO - experimentalapp
directory - NO - Would you like to customize the default import alias -
[IMPORTANT]
-
trebuie editat in
package.json
script-ul de build:{ "scripts": { "build": "next build && next export", } }
-
iar
in next.config.js
:// ... const nextConfig = { //reactStrictMode: true, output: 'export', distDir: 'dist' } // ...
make start-dev
make start-prod
==> /app/.next/static