-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1128 from kkhys/staging
Production deploy
- Loading branch information
Showing
48 changed files
with
1,213 additions
and
615 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import type { NextRequest } from 'next/server'; | ||
import satori from 'satori'; | ||
|
||
export const runtime = 'edge'; | ||
|
||
export const GET = async (request: NextRequest) => { | ||
const interMedium = await fetch(new URL('../../../../assets/fonts/Inter-Medium.ttf', import.meta.url)).then((res) => | ||
res.arrayBuffer(), | ||
); | ||
|
||
const searchParams = request.nextUrl.searchParams; | ||
const theme = searchParams.get('theme') ?? 'light'; | ||
|
||
const svg = await satori( | ||
<div | ||
style={{ | ||
fontSize: 130, | ||
width: '100%', | ||
height: '100%', | ||
display: 'flex', | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
fontFamily: 'Inter', | ||
fontSmooth: 'antialiased', | ||
color: theme === 'dark' ? '#111113' : '#e6e5e5', | ||
backgroundColor: theme === 'dark' ? '#e6e5e5' : '#111113', | ||
}} | ||
> | ||
K | ||
</div>, | ||
{ | ||
width: 256, | ||
height: 256, | ||
fonts: [ | ||
{ | ||
name: 'Inter', | ||
data: interMedium, | ||
style: 'normal', | ||
weight: 500, | ||
}, | ||
], | ||
}, | ||
); | ||
|
||
return new Response(svg, { | ||
status: 200, | ||
headers: { | ||
'Content-Type': 'image/svg+xml', | ||
'X-Content-Type-Options': 'nosniff', | ||
'cache-control': 'public, immutable, no-transform, max-age=31536000', | ||
}, | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export * from './constants'; | ||
export * from './searchItems'; | ||
export * from './search-items'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import type { Base } from '.'; | ||
import { extractTitle } from '../../lib/contentlayer/utils'; | ||
|
||
export type Category = Base; | ||
export type CategoryTitle = (typeof categories)[number]['title']; | ||
|
||
export const categories = [ | ||
{ | ||
title: 'Tech', | ||
slug: 'tech', | ||
emoji: '👩🏻💻', | ||
}, | ||
{ | ||
title: 'Life', | ||
slug: 'life', | ||
emoji: '🕯️', | ||
}, | ||
// { | ||
// title: 'Fashion', | ||
// slug: 'fashion', | ||
// emoji: '👗', | ||
// }, | ||
] as const; | ||
|
||
export const categoryTitles = categories.map(extractTitle); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export type Base = Record<'title' | 'slug' | 'emoji', string>; | ||
|
||
export * from './tag'; | ||
export * from './category'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export const fashionTags = [ | ||
{ | ||
title: 'Handmade', | ||
slug: 'handmade', | ||
emoji: '🧶', | ||
}, | ||
] as const; | ||
|
||
export type FashionTags = typeof fashionTags; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import type { Base } from '..'; | ||
import { extractTitle } from '../../../lib/contentlayer/utils'; | ||
import { fashionTags } from './fashion'; | ||
import { lifeTags } from './life'; | ||
import { techTags } from './tech'; | ||
|
||
export type Tag = Base; | ||
export type AllTagsTitle = (typeof allTags)[number]['title']; | ||
|
||
export const allTags = [...techTags, ...lifeTags, ...fashionTags]; | ||
export const allTagTitles = allTags.map(extractTitle); | ||
|
||
export * from './tech'; | ||
export * from './life'; | ||
export * from './fashion'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
export const lifeTags = [ | ||
{ | ||
title: 'Travel', | ||
slug: 'travel', | ||
emoji: '🌎', | ||
}, | ||
{ | ||
title: 'Memorial', | ||
slug: 'memorial', | ||
emoji: '🌸', | ||
}, | ||
{ | ||
title: 'Essay', | ||
slug: 'essay', | ||
emoji: '📝', | ||
}, | ||
{ | ||
title: 'Poor writing', | ||
slug: 'poor-writing', | ||
emoji: '🗑️', | ||
}, | ||
] as const; | ||
|
||
export type LifeTags = typeof lifeTags; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
export const techTags = [ | ||
{ | ||
title: 'Release', | ||
slug: 'release', | ||
emoji: '🚀', | ||
}, | ||
{ | ||
title: 'TypeScript', | ||
slug: 'typescript', | ||
emoji: '📘', | ||
}, | ||
{ | ||
title: 'React', | ||
slug: 'react', | ||
emoji: '⚛️', | ||
}, | ||
{ | ||
title: 'Play Framework', | ||
slug: 'play-framework', | ||
emoji: '▶️', | ||
}, | ||
{ | ||
title: 'Next.js', | ||
slug: 'next-js', | ||
emoji: '🔼', | ||
}, | ||
] as const; | ||
|
||
export type TechTags = typeof techTags; |
File renamed without changes.
Oops, something went wrong.
a14cf98
There was a problem hiding this comment.
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:
me-web – ./apps/web
me-web-kkhys-team.vercel.app
me-web-git-main-kkhys-team.vercel.app
kkhys.me
me-web-ten.vercel.app
www.kkhys.me
a14cf98
There was a problem hiding this comment.
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:
me-storybook – ./
me-storybook-kkhys-team.vercel.app
storybook.kkhys.me
me-admin-lake.vercel.app
me-storybook-git-main-kkhys-team.vercel.app