Skip to content

Commit

Permalink
fix: fix build issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
fky2015 committed Apr 8, 2022
1 parent b174ee7 commit 82cc56f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion components/GitHubShareButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import styles from './styles.module.css'
export const GitHubShareButton: React.FC = () => {
return (
<a
href='https://github.com/transitive-bullshit/nextjs-notion-starter-kit'
href='https://github.com/fky2015/nexon'
target='_blank'
rel='noopener noreferrer'
className={styles.githubCorner}
Expand Down
1 change: 1 addition & 0 deletions components/NotionPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ export const NotionPage: React.FC<types.PageProps> = ({
footer={<Footer />}
/>

<GitHubShareButton />
</TwitterContextProvider>
)
}
7 changes: 7 additions & 0 deletions lib/site-config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import * as types from './types'
import { GiscusProps } from '@giscus/react'

export interface SiteConfig {
rootNotionPageId: string
rootNotionTestPageId?: string
rootNotionSpaceId?: string

name: string
Expand Down Expand Up @@ -29,6 +31,11 @@ export interface SiteConfig {

navigationStyle?: types.NavigationStyle
navigationLinks?: Array<NavigationLink>

giscusGithubConfig?: GiscusProps

OverrideCreatedTime?: string
OverrideLastEditedTime?: string
}

export interface NavigationLink {
Expand Down
8 changes: 3 additions & 5 deletions site.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import { siteConfig } from './lib/site-config'

export default siteConfig({
// the site's root Notion page (required)
rootNotionPageId: '616010038b314232972ce9f23ccecc97',
rootNotionPageId: '3ed6053553a04e0698a981797052d7cb',

// It's will be used as the root page when running `yarn dev`. (optional)
// If you are suffering from the slow loading or compiling speed, set this to a smaller page.
// Just leave `null` if you don't want to use it.
rootNotionTestPageId: '6f55bc87f5ea429cb9711b67ac00ea90',
rootNotionTestPageId: null,

// if you want to restrict pages to a single notion workspace (optional)
// (this should be a Notion ID; see the docs for how to extract this)
Expand All @@ -20,8 +20,6 @@ export default siteConfig({

// open graph metadata (optional)
description: 'Code for Good.',
socialImageTitle: 'Feng Kaiyu',
socialImageSubtitle: '一个有技术和思考的角落',

// social usernames (optional)
twitter: 'FKYnJYQ',
Expand All @@ -34,7 +32,7 @@ export default siteConfig({
defaultPageCover: null,
defaultPageCoverPosition: 0.5,

// Giscus comments via Github Discusstion (optional, has a priority over Utterances)
// Giscus comments via Github Discusstion (optional)
//
// To generate the following configs, visit https://giscus.app/.
giscusGithubConfig: {
Expand Down

1 comment on commit 82cc56f

@vercel
Copy link

@vercel vercel bot commented on 82cc56f Apr 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nexon-demo – ./

nexon-demo-git-main-fkynjyq.vercel.app
nexon-demo.vercel.app
nexon-demo-fkynjyq.vercel.app

Please sign in to comment.