Skip to content

Commit

Permalink
fix: const import error
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Dec 15, 2022
1 parent d9b2067 commit 9994284
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
11 changes: 5 additions & 6 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@ import { withBase } from 'ufo'
import fg from 'fast-glob'
import { createBrowser, screenshot } from './runtime/browserService'
import type { OgImageRouteEntry, ScreenshotOptions } from './types'
import {
HtmlRendererRoute,
LinkPrerenderId,
MetaOgImageContentPlaceholder,
PayloadScriptId,
} from './runtime/const'

export interface ModuleOptions extends ScreenshotOptions {
defaultIslandComponent: string
Expand All @@ -35,6 +29,11 @@ export interface ModuleOptions extends ScreenshotOptions {
runtimeImages: boolean
}

export const HtmlRendererRoute = '__og_image'
export const PayloadScriptId = 'nuxt-og-image-payload'
export const MetaOgImageContentPlaceholder = '__NUXT_OG_IMAGE_PLACEHOLDER__'
export const LinkPrerenderId = 'nuxt-og-image-screenshot-path'

export default defineNuxtModule<ModuleOptions>({
meta: {
name: 'nuxt-og-image',
Expand Down
4 changes: 0 additions & 4 deletions src/runtime/const.ts

This file was deleted.

0 comments on commit 9994284

Please sign in to comment.