Skip to content

Commit

Permalink
refactor: use yellow shadow for og bg
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Sep 3, 2024
1 parent b9be2aa commit ce281c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/modules/og-image/runtime/assets/template.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions app/modules/og-image/runtime/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ export default defineLazyEventHandler(async () => {

// Read server assets
const nunito = await useStorage().getItemRaw('assets:og-image:nunito.ttf')
// const svgTemplate = (await useStorage().getItem('assets:og-image:template.svg')) as string
const svgTemplate = (await useStorage().getItem('assets:og-image:template.svg')) as string

return defineEventHandler(async (event) => {
// Use this for HMR
const svgTemplate = (await useStorage().getItem('assets:og-image:template.svg')) as string
// const svgTemplate = (await useStorage().getItem('assets:og-image:template.svg')) as string

const { name = '', title = '', description = '' } = getQuery(event) as Record<string, string>

Expand Down

0 comments on commit ce281c3

Please sign in to comment.