Skip to content
This repository was archived by the owner on Apr 6, 2023. It is now read-only.
/frameworkPublic archive

Commit 6ad0f3f

Browse files
author
Sébastien Chopin
committed
docs: add support for WEBSITE_THEMe env variable
1 parent 1471e05 commit 6ad0f3f

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

‎docs/.env.example‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Local version of the website theme
2+
WEBSITE_THEME=/my/path/to/website-theme

‎docs/nuxt.config.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
import{join}from'pathe'
2+
13
exportdefaultdefineNuxtConfig({
2-
extends: '@nuxt-themes/website',
4+
extends: process.env.WEBSITE_THEME ? join(process.env.WEBSITE_THEME,'theme') : '@nuxt-themes/website',
35
nitro: {
46
prerender: {
57
routes: ['/','/404.html','/guide/directory-structure/app.config']

0 commit comments

Comments
 (0)