refactor(config): update config + types
This commit is contained in:
parent
bb304f8805
commit
7c3e436d85
@ -1,4 +1,4 @@
|
|||||||
type PCKeys =
|
type SEOKeys =
|
||||||
| 'shortName'
|
| 'shortName'
|
||||||
| 'longName'
|
| 'longName'
|
||||||
| 'description'
|
| 'description'
|
||||||
@ -7,8 +7,6 @@ type PCKeys =
|
|||||||
| 'defaultLocale'
|
| 'defaultLocale'
|
||||||
type PCIconsKeys = 'default' | 'image' | 'apple' | '16_16' | '32_32'
|
type PCIconsKeys = 'default' | 'image' | 'apple' | '16_16' | '32_32'
|
||||||
|
|
||||||
type PCProps = Record<PCKeys, string>
|
export interface SEODefaultValues extends Partial<Record<SEOKeys, string>> {
|
||||||
|
icons?: Record<PCIconsKeys, string>
|
||||||
export interface PCDefaultValues extends PCProps {
|
|
||||||
icons: Record<PCIconsKeys, string>
|
|
||||||
}
|
}
|
@ -1,11 +1,12 @@
|
|||||||
import { PCDefaultValues } from 'types/projectConfig'
|
import { SEODefaultValues } from 'types/config'
|
||||||
|
|
||||||
export const projectConfig: PCDefaultValues = {
|
export const PROJECT_NAME = 'Boilerplate'
|
||||||
shortName: 'Boilerplate',
|
|
||||||
longName: 'Next.Js Boilerplate',
|
export const SEOConfig: SEODefaultValues = {
|
||||||
description:
|
shortName: PROJECT_NAME,
|
||||||
'The latest Next.js boilerplate starter code/time saver with Typescript / SCSS. Including linters such as: Prettier, Eslint and Stylelint.',
|
longName: `Next.Js ${PROJECT_NAME}`,
|
||||||
url: 'Unknown project url',
|
description: `My Next.JS ${PROJECT_NAME} with TS - Tailwind CSS and much more.`,
|
||||||
|
url: 'https://next-app-boilerplate.vercel.app/',
|
||||||
defaultLocale: 'en',
|
defaultLocale: 'en',
|
||||||
color: '#775aaa',
|
color: '#775aaa',
|
||||||
icons: {
|
icons: {
|
||||||
|
Loading…
Reference in New Issue
Block a user