Skip to content

Commit

Permalink
fix(@zakelstorm/blog): 환경 변수 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
nz10387 authored and korkt-kim committed Jun 2, 2024
1 parent 7d6ba19 commit d8e2566
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},
"typescript.preferences.importModuleSpecifier": "shortest",
"[typescript]": {
Expand Down
6 changes: 2 additions & 4 deletions apps/blog/app/(main)/about/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Typo } from '@zakelstorm/ui'
import { ComponentProps, PropsWithChildren } from 'react'

import { env } from '@/env'
import { CONTACT_EMAIL } from '@/consts'

export default function Page() {
return (
Expand Down Expand Up @@ -31,9 +31,7 @@ export default function Page() {
</Typo.Link>
</li>
<li>
<Typo.Link href={`mailto:${env('NEXT_PUBLIC_CONTACT_EMAIL')}`}>
Email
</Typo.Link>
<Typo.Link href={`mailto:${CONTACT_EMAIL}`}>Email</Typo.Link>
</li>
</Ul>
</>
Expand Down
2 changes: 2 additions & 0 deletions apps/blog/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ export const CATEGORIES = [
] as const

export const articleContainerId = 'article_container'

export const CONTACT_EMAIL = '[email protected]'
1 change: 0 additions & 1 deletion apps/blog/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ interface APP_ENV {
NEXT_PUBLIC_SANITY_API_VERSION: string
NEXT_PUBLIC_SANITY_REVALIDATE_SECRET: string
NEXT_PUBLIC_BASE_URL: string
NEXT_PUBLIC_CONTACT_EMAIL: string
NEXT_PUBLIC_GA_ID: string
}

Expand Down
6 changes: 2 additions & 4 deletions apps/blog/features/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
import { Flex, Typo } from '@zakelstorm/ui'
import dayjs from 'dayjs'

import { env } from '@/env'
import { CONTACT_EMAIL } from '@/consts'

export function Footer() {
return (
<Flex>
<Typo.Text>Product by zakelstorm</Typo.Text>

<Typo.Link href={`mailto:${env('NEXT_PUBLIC_CONTACT_EMAIL')}`}>
Contact
</Typo.Link>
<Typo.Link href={`mailto:${CONTACT_EMAIL}`}>Contact</Typo.Link>
<Typo.Text>© {dayjs().year()}, zakelstorm</Typo.Text>
</Flex>
)
Expand Down

0 comments on commit d8e2566

Please sign in to comment.