Skip to content

Commit 0dd72f7

Browse files
committed
Fix CRM demo using Safari.
1 parent 990650d commit 0dd72f7

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

examples/crm/src/providers/fakerest/dataProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { getContactAvatar } from '../commons/getContactAvatar';
2222
import { authProvider, USER_STORAGE_KEY } from './authProvider';
2323
import { withSupabaseFilterAdapter } from './internal/supabaseAdapter';
2424

25-
const baseDataProvider = simpleRestProvider('http://localhost:4000');
25+
const baseDataProvider = simpleRestProvider('https://localhost:4000');
2626

2727
const TASK_MARKED_AS_DONE = 'TASK_MARKED_AS_DONE';
2828
const TASK_MARKED_AS_UNDONE = 'TASK_MARKED_AS_UNDONE';

examples/crm/src/providers/fakerest/fakeServer.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ import { type CollectionItem, getMswHandler, withDelay } from 'fakerest';
44
import generateData from './dataGenerator';
55

66
const handler = getMswHandler({
7-
baseUrl: 'http://localhost:4000',
7+
baseUrl: 'https://localhost:4000',
88
data: generateData() as CollectionItem,
99
middlewares: [withDelay(300)],
1010
});
11-
export const worker = setupWorker(http.all(/http:\/\/localhost:4000/, handler));
11+
export const worker = setupWorker(
12+
http.all(/https:\/\/localhost:4000/, handler)
13+
);
1214

1315
export default () => worker;

0 commit comments

Comments
 (0)