Compare commits
2
Commits
V1.0.6
..
62398fbf3d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
62398fbf3d | ||
|
|
6c005783e0 |
@@ -21,6 +21,9 @@ export const remindersApi = {
|
||||
if (value !== null && value !== undefined) {
|
||||
if (key === 'data' && typeof value === 'object') {
|
||||
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 {
|
||||
formData.append(key, String(value));
|
||||
}
|
||||
@@ -53,6 +56,9 @@ export const remindersApi = {
|
||||
if (value !== null && value !== undefined) {
|
||||
if (key === 'data' && typeof value === 'object') {
|
||||
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 {
|
||||
formData.append(key, String(value));
|
||||
}
|
||||
|
||||
@@ -2,5 +2,8 @@ import type { NextConfig } from "next";
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user