Compare commits

..
2 Commits
Author SHA1 Message Date
Amirmahdi 62398fbf3d fix: reminder 2026-06-30 16:15:04 +03:30
Amirmahdi 6c005783e0 fix 2026-06-30 14:42:19 +03:30
2 changed files with 10 additions and 1 deletions
+6
View File
@@ -21,6 +21,9 @@ export const remindersApi = {
if (value !== null && value !== undefined) { if (value !== null && value !== undefined) {
if (key === 'data' && typeof value === 'object') { if (key === 'data' && typeof value === 'object') {
formData.append(key, JSON.stringify(value)); formData.append(key, JSON.stringify(value));
} else if (typeof value === 'boolean') {
// Laravel's `boolean` rule rejects the strings "true"/"false"; send 1/0
formData.append(key, value ? '1' : '0');
} else { } else {
formData.append(key, String(value)); formData.append(key, String(value));
} }
@@ -53,6 +56,9 @@ export const remindersApi = {
if (value !== null && value !== undefined) { if (value !== null && value !== undefined) {
if (key === 'data' && typeof value === 'object') { if (key === 'data' && typeof value === 'object') {
formData.append(key, JSON.stringify(value)); formData.append(key, JSON.stringify(value));
} else if (typeof value === 'boolean') {
// Laravel's `boolean` rule rejects the strings "true"/"false"; send 1/0
formData.append(key, value ? '1' : '0');
} else { } else {
formData.append(key, String(value)); formData.append(key, String(value));
} }
+3
View File
@@ -2,5 +2,8 @@ import type { NextConfig } from "next";
const nextConfig: NextConfig = { const nextConfig: NextConfig = {
output: 'export', output: 'export',
// Emit each route as a folder with index.html (e.g. admin/login/index.html)
// so static hosts (nginx) can serve clean URLs without custom rewrite rules.
trailingSlash: true,
}; };
export default nextConfig; export default nextConfig;