docs: add support for WEBSITE_THEMe env variable

This commit is contained in:
Sébastien Chopin 2022-10-13 17:49:06 +02:00
parent 1471e0566f
commit 6ad0f3f157
2 changed files with 5 additions and 1 deletions

2
docs/.env.example Normal file
View File

@ -0,0 +1,2 @@
# Local version of the website theme
WEBSITE_THEME=/my/path/to/website-theme

View File

@ -1,5 +1,7 @@
import { join } from 'pathe'
export default defineNuxtConfig({
extends: '@nuxt-themes/website',
extends: process.env.WEBSITE_THEME ? join(process.env.WEBSITE_THEME, 'theme') : '@nuxt-themes/website',
nitro: {
prerender: {
routes: ['/', '/404.html', '/guide/directory-structure/app.config']