- Node.js 20+
git clone https://github.com/Studio-Yandex-Practicum/lubimovka_frontend.git
cd lubimovka_frontend
npm installNEXT_PUBLIC_BASE_URL;NEXT_PUBLIC_API_BASE_URL;NEXT_PUBLIC_API_MOCKING– в значенииenabledвключает моки;
Как добавить переменную окружения локально?
npm run devПриложение запустится по адресу: http://localhost:3000
npm run buildNEXT_PUBLIC_MOCKS– boolean, включает моки;NEXT_PUBLIC_BASE_URL;NEXT_PUBLIC_API_BASE_URL;NEXT_PUBLIC_GA_TRACKING_ID– идентификатор ресурса Google Analytics;
Как добавить переменную окружения локально?
npm run lint:jsnpm run lint:cssnpm run type-checknpm run storybookStorybook запустится по адресу: http://localhost:3001
npm run update-typingsnpm run update-git-hooks