@@ -16,9 +16,9 @@ import fetchAirtableTable, { GenericListApiResponse } from './fetchAirtableTable
16
16
*/
17
17
const fetchCustomer = async ( preferredLocales : string [ ] ) : Promise < AirtableRecord < Customer > > => {
18
18
const customerRef = process . env . NEXT_PUBLIC_CUSTOMER_REF ;
19
- const { records : airtableCustomers } = await cache ( 'CustomerTable' , async ( ) => await fetchAirtableTable < GenericListApiResponse < AirtableRecord < Customer > > > ( 'Customer' ) , { enabled : ! ! process . env . IS_SERVER_INITIAL_BUILD && process . env . NODE_ENV !== 'development' } ) ;
20
- const { records : airtableThemes } = await cache ( 'ThemeTable' , async ( ) => await fetchAirtableTable < GenericListApiResponse < AirtableRecord < Theme > > > ( 'Theme' ) , { enabled : ! ! process . env . IS_SERVER_INITIAL_BUILD && process . env . NODE_ENV !== 'development' } ) ;
21
- const { records : airtableProducts } = await cache ( 'ProductTable' , async ( ) => await fetchAirtableTable < GenericListApiResponse < AirtableRecord < Product > > > ( 'Product' ) , { enabled : ! ! process . env . IS_SERVER_INITIAL_BUILD && process . env . NODE_ENV !== 'development' } ) ;
19
+ const { records : airtableCustomers } = await cache ( 'CustomerTable' , async ( ) => await fetchAirtableTable < GenericListApiResponse < AirtableRecord < Customer > > > ( 'Customer' ) , { enabled : ! ! process . env . IS_SERVER_INITIAL_BUILD && process . env . NODE_ENV !== 'development' , storage : { type : 'disk' , options : { filename : 'CustomerTable' } } } ) ;
20
+ const { records : airtableThemes } = await cache ( 'ThemeTable' , async ( ) => await fetchAirtableTable < GenericListApiResponse < AirtableRecord < Theme > > > ( 'Theme' ) , { enabled : ! ! process . env . IS_SERVER_INITIAL_BUILD && process . env . NODE_ENV !== 'development' , storage : { type : 'disk' , options : { filename : 'ThemeTable' } } } ) ;
21
+ const { records : airtableProducts } = await cache ( 'ProductTable' , async ( ) => await fetchAirtableTable < GenericListApiResponse < AirtableRecord < Product > > > ( 'Product' ) , { enabled : ! ! process . env . IS_SERVER_INITIAL_BUILD && process . env . NODE_ENV !== 'development' , storage : { type : 'disk' , options : { filename : 'ProductTable' } } } ) ;
22
22
const dataset : AirtableDataset = buildDataset ( [
23
23
{ records : airtableCustomers , __typename : 'Customer' } ,
24
24
{ records : airtableThemes , __typename : 'Theme' } ,
0 commit comments