Skip to content

Commit 9142c3f

Browse files
committed
Fix demo when using Safari.
1 parent f45b344 commit 9142c3f

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

examples/demo/src/dataProvider/graphql.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ const customBuildQuery: BuildQueryFactory = introspectionResults => {
115115
export default () => {
116116
const dataProvider = buildApolloClient({
117117
clientOptions: {
118-
uri: 'http://localhost:4000/graphql',
118+
uri: 'https://localhost:4000/graphql',
119119
},
120120
introspection: {
121121
operationNames: {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import simpleRestProvider from 'ra-data-simple-rest';
22

3-
export default simpleRestProvider('http://localhost:4000');
3+
export default simpleRestProvider('https://localhost:4000');

examples/demo/src/fakeServer/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ export default async (type: string) => {
1818
);
1919
}
2020
}
21-
const worker = setupWorker(http.all(/http:\/\/localhost:4000/, fakeServer));
21+
const worker = setupWorker(
22+
http.all(/https:\/\/localhost:4000/, fakeServer)
23+
);
2224
return worker;
2325
};

examples/demo/src/fakeServer/rest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import generateData from 'data-generator-retail';
44
export default () => {
55
const data = generateData();
66
const adapter = new MswAdapter({
7-
baseUrl: 'http://localhost:4000',
7+
baseUrl: 'https://localhost:4000',
88
data,
99
loggingEnabled: true,
1010
middlewares: [withDelay(300)],

0 commit comments

Comments
 (0)