Reorganize frontend and install Craco to alias modules (#190)

This commit is contained in:
Charles Bochet
2023-06-04 11:23:09 +02:00
committed by GitHub
parent bbc80cd543
commit 7b858fd7c9
149 changed files with 3441 additions and 1158 deletions

View File

@ -1,14 +1,15 @@
import {
ApolloClient,
InMemoryCache,
Observable,
createHttpLink,
from,
InMemoryCache,
Observable,
} from '@apollo/client';
import { setContext } from '@apollo/client/link/context';
import { RestLink } from 'apollo-link-rest';
import { onError } from '@apollo/client/link/error';
import { refreshAccessToken } from './services/auth/AuthService';
import { RestLink } from 'apollo-link-rest';
import { refreshAccessToken } from './modules/auth/services/AuthService';
const apiLink = createHttpLink({
uri: `${process.env.REACT_APP_API_URL}`,