refactor(config): update config + types

This commit is contained in:
Walid 2023-02-10 12:41:47 +01:00
parent bb304f8805
commit 7c3e436d85
Signed by: Walidoux
GPG Key ID: CCF21881FE8BEBAF
2 changed files with 11 additions and 12 deletions

View File

@ -1,4 +1,4 @@
type PCKeys =
type SEOKeys =
| 'shortName'
| 'longName'
| 'description'
@ -7,8 +7,6 @@ type PCKeys =
| 'defaultLocale'
type PCIconsKeys = 'default' | 'image' | 'apple' | '16_16' | '32_32'
type PCProps = Record<PCKeys, string>
export interface PCDefaultValues extends PCProps {
icons: Record<PCIconsKeys, string>
export interface SEODefaultValues extends Partial<Record<SEOKeys, string>> {
icons?: Record<PCIconsKeys, string>
}

View File

@ -1,11 +1,12 @@
import { PCDefaultValues } from 'types/projectConfig'
import { SEODefaultValues } from 'types/config'
export const projectConfig: PCDefaultValues = {
shortName: 'Boilerplate',
longName: 'Next.Js Boilerplate',
description:
'The latest Next.js boilerplate starter code/time saver with Typescript / SCSS. Including linters such as: Prettier, Eslint and Stylelint.',
url: 'Unknown project url',
export const PROJECT_NAME = 'Boilerplate'
export const SEOConfig: SEODefaultValues = {
shortName: PROJECT_NAME,
longName: `Next.Js ${PROJECT_NAME}`,
description: `My Next.JS ${PROJECT_NAME} with TS - Tailwind CSS and much more.`,
url: 'https://next-app-boilerplate.vercel.app/',
defaultLocale: 'en',
color: '#775aaa',
icons: {