npm install --legacy-peer-deps
- rename .env.example to .env.local
- adapt the value to your environment
- generate your secret key AUTH_SECRET with
openssl rand -base64 32 | tr -d '='
npm run dev
x-forwarded-host
header with value localhost:3001
does not match origin
header with value imev:3001
from a forwarded Server Actions request. Aborting the action.
serverActions: { allowedOrigins: ["xxxx.com", "localhost:3001"], }
localhost:3001/auth/login http://zooprocess.imev-mer.fr:3001/auth/login
seb@seb.com seb1234
docker build -t zooprocessv10-docker .
FROM node:18
WORKDIR /app COPY package*.json ./ RUN npm install --legacy-peer-deps COPY . . EXPOSE 3000 CMD npm run dev
docker build -t zooprocess-front . docker run -p 3000:3001 zooprocess-front
Licensed under the MIT license.
This project uses Prettier for code formatting with a configuration that enforces a consistent style across the codebase.
- 2-space indentation
- Single quotes for strings
- Semicolons at the end of statements
- 100 character line length
- Trailing commas in objects and arrays (ES5 style)
npm run format
: Format all files according to the Prettier configurationnpm run format:check
: Check if files are formatted correctly without making changes
For the best development experience, install the Prettier extension for your editor:
- VS Code: Prettier - Code formatter
- WebStorm/IntelliJ IDEA: Enable Prettier in Settings > Languages & Frameworks > JavaScript > Prettier
For teams, it's recommended to set up a pre-commit hook using Husky and lint-staged to automatically format files before committing.