File tree Expand file tree Collapse file tree 4 files changed +2
-11
lines changed
Expand file tree Collapse file tree 4 files changed +2
-11
lines changed Original file line number Diff line number Diff line change 22import { defineConfig } from '../../src/main' ;
33import dotenv from 'dotenv' ;
44
5- dotenv . config ( ) ;
5+ dotenv . config ( { quiet : true } ) ;
66
77const isProductionEnv = process . env . SOME_ENVIRONMENT_VARIABLE === 'some-value' ;
88
Original file line number Diff line number Diff line change 11import * as contentful from 'contentful' ;
2- import dotenv from 'dotenv' ;
32import { ConfigContentfulSettings } from '@/main/config/types' ;
43
5- dotenv . config ( ) ;
6-
74const createContentfulClient = (
85 settings : ConfigContentfulSettings ,
96 previewMode = false
Original file line number Diff line number Diff line change 11import path from 'path' ;
2- import dotenv from 'dotenv' ;
32import { loadFile , checkContentfulSettings } from './fileLoader' ;
43import type { ConfigContentfulSettings , ContentfulHugoConfig } from './types' ;
54
65export * from './types' ;
76
8- dotenv . config ( ) ;
9-
107/**
118 * Load Contentful Hugo config file
129 */
@@ -61,6 +58,6 @@ export const loadConfig = async (
6158
6259export const defineConfig = (
6360 config : Partial < Omit < ContentfulHugoConfig , 'contentful' > > & {
64- contentful : Partial < ConfigContentfulSettings > ;
61+ contentful ? : Partial < ConfigContentfulSettings > ;
6562 }
6663) => config ;
Original file line number Diff line number Diff line change 11import { ContentSettings } from '@main/index' ;
22import fs from 'fs-extra' ;
33import * as contentful from 'contentful' ;
4- import dotenv from 'dotenv' ;
54import processEntry from './processEntry' ;
65import { ConfigContentfulSettings } from './config/types' ;
76import { parseDirectoryPath } from './processEntry/createFile' ;
87
9- dotenv . config ( ) ;
10-
118export const prepDirectory = async (
129 settings : ContentSettings
1310) : Promise < void > => {
You can’t perform that action at this time.
0 commit comments