File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,9 @@ const resolvers = {
65
65
} ;
66
66
67
67
const app = express ( ) ;
68
- app . use ( cors ( { origin : '*' } ) ) ;
68
+ app . use ( cors ( {
69
+ origin : '*' ,
70
+ } ) ) ;
69
71
70
72
const startApolloServer = async ( ) => {
71
73
const server = new ApolloServer ( {
@@ -78,7 +80,7 @@ const startApolloServer = async () => {
78
80
await server . start ( ) ;
79
81
server . applyMiddleware ( { app, path : '/graphql' } ) ;
80
82
81
- const PORT = 5000 ;
83
+ const PORT = 4000 ;
82
84
app . listen ( PORT , ( ) => {
83
85
console . log ( `🚀 Server ready at http://localhost:${ PORT } ${ server . graphqlPath } ` ) ;
84
86
} ) ;
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import Loader from "../../components/loader"; // Import the loader component
12
12
import SkeletonLoader from "../../components/skeltonloader" ;
13
13
14
14
const client = new ApolloClient ( {
15
- uri : process . env . GRAPH_QL_URI || 'http ://localhost:5000 /graphql' ,
15
+ uri : process . env . GRAPH_QL_URI || 'https ://images.istenith.com /graphql/ ' ,
16
16
cache : new InMemoryCache ( ) ,
17
17
} ) ;
18
18
You can’t perform that action at this time.
0 commit comments