Open History to see the last commit
1import {
2 provideHttpClient,
3 withFetch,
4 withInterceptors,
5} from '@angular/common/http'
6import {
7 QueryClient,
8 provideAngularQuery,
9} from '@tanstack/angular-query-experimental'
10import { projectsMockInterceptor } from './api/projects-mock.interceptor'
11import type { ApplicationConfig } from '@angular/core'
12β
13export const appConfig: ApplicationConfig = {
14 providers: [
15 provideAngularQuery(
16 new QueryClient({
17 defaultOptions: {
18 queries: {
19 gcTime: 1000 * 60 * 60 * 24, // 24 hours
20 },
21 },
22 }),
23 ),
24 provideHttpClient(withInterceptors([projectsMockInterceptor]), withFetch()),
25 ],
26}