Compare commits
2
Commits
a25fd73eea
...
62398fbf3d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
62398fbf3d | ||
|
|
6c005783e0 |
@@ -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));
|
||||||
}
|
}
|
||||||
|
|||||||
+4
-1
@@ -1,6 +1,9 @@
|
|||||||
import type { NextConfig } from "next";
|
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;
|
||||||
|
|||||||
Reference in New Issue
Block a user