chore(vercel): build silencieux via buildCommand (npm run --silent build); package.json sans flag non supporté
This commit is contained in:
parent
2fca0fcbf2
commit
2e2c7d06e9
4 changed files with 14 additions and 7 deletions
|
|
@ -103,17 +103,23 @@ export default function DatesQuantityModal({
|
|||
}, [selectedIsos, quantities, dateType]);
|
||||
|
||||
const handleQuantityChange = (iso: string, value: string) => {
|
||||
const numValue = value === "" ? "" : parseInt(value) || 0;
|
||||
|
||||
// Gestion de la valeur vide: on permet l'effacement temporaire
|
||||
if (value === "") {
|
||||
setValidationError("");
|
||||
setQuantities({ ...quantities, [iso]: "" });
|
||||
return;
|
||||
}
|
||||
|
||||
const n = parseInt(value, 10) || 0;
|
||||
// Validation : min 1, max 3
|
||||
if (value !== "" && (numValue < 1 || numValue > 3)) {
|
||||
if (n < 1 || n > 3) {
|
||||
setValidationError(`La quantité doit être entre 1 et 3`);
|
||||
return;
|
||||
} else {
|
||||
setValidationError("");
|
||||
}
|
||||
|
||||
setQuantities({ ...quantities, [iso]: numValue });
|
||||
|
||||
setQuantities({ ...quantities, [iso]: n });
|
||||
};
|
||||
|
||||
const handleApply = () => {
|
||||
|
|
|
|||
|
|
@ -2142,7 +2142,7 @@ export default function ContractEditor({
|
|||
className="flex-1"
|
||||
/>
|
||||
<span className="text-slate-400 font-medium">×</span>
|
||||
{nbServicesRepetition > 0 && (
|
||||
{typeof nbServicesRepetition === "number" && nbServicesRepetition > 0 && (
|
||||
<select
|
||||
value={durationServices}
|
||||
onChange={(e) => setDurationServices(e.target.value as "3" | "4")}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
"dev:mobile": "./dev-with-network.sh",
|
||||
"dev:network:alt": "PORT=3001 node server.js",
|
||||
"test:network": "node test-server.js",
|
||||
"build": "next build",
|
||||
"build": "next build",
|
||||
"start": "next start",
|
||||
"lint": "next lint"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"regions": ["cdg1"],
|
||||
"buildCommand": "npm run --silent build",
|
||||
"functions": {
|
||||
"app/api/**/*.ts": {
|
||||
"maxDuration": 30
|
||||
|
|
|
|||
Loading…
Reference in a new issue