refactor(config): update config + types
This commit is contained in:
parent
bb304f8805
commit
7c3e436d85
@ -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>
|
||||
}
|
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user