All checks were successful
Publish Docker Image / Publish Docker Image (push) Successful in 39s
30 lines
782 B
TypeScript
Executable File
30 lines
782 B
TypeScript
Executable File
import { FatalErrorBoundary, RedwoodProvider } from '@redwoodjs/web'
|
|
import { RedwoodApolloProvider } from '@redwoodjs/web/apollo'
|
|
|
|
import { AuthProvider, useAuth } from 'src/auth'
|
|
import FatalErrorPage from 'src/pages/FatalErrorPage'
|
|
import Routes from 'src/Routes'
|
|
|
|
import 'src/index.css'
|
|
|
|
const App = () => (
|
|
<FatalErrorBoundary page={FatalErrorPage}>
|
|
<RedwoodProvider titleTemplate="%PageTitle | %AppTitle">
|
|
<AuthProvider>
|
|
<RedwoodApolloProvider
|
|
useAuth={useAuth}
|
|
graphQLClientConfig={{
|
|
httpLinkConfig: {
|
|
credentials: 'include',
|
|
},
|
|
}}
|
|
>
|
|
<Routes />
|
|
</RedwoodApolloProvider>
|
|
</AuthProvider>
|
|
</RedwoodProvider>
|
|
</FatalErrorBoundary>
|
|
)
|
|
|
|
export default App
|