UNPKG

nuxt-github-pages

Version:

Nuxt module to fix trailing slash issues for GitHub Pages deployments

40 lines (37 loc) 1.02 kB
import * as _nuxt_schema from '@nuxt/schema'; interface ModuleOptions { /** * Enable or disable the module * @default true */ enabled?: boolean; /** * Additional directories to check for output * @default ['dist', '.output/public'] */ outputDirs?: string[]; /** * Log output during processing * @default true */ verbose?: boolean; /** * Add canonical URLs to prevent SEO duplicate content issues * @default true */ canonicalUrls?: boolean; /** * Whether to use trailing slashes in canonical URLs * @default false */ trailingSlash?: boolean; /** * Create duplicate HTML files to avoid GitHub Pages redirects * Set to false if you only need canonical URLs without file duplication * @default true */ createDuplicates?: boolean; } declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>; export { _default as default }; export type { ModuleOptions };