Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
docs: add support for WEBSITE_THEMe env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux committed Oct 13, 2022
1 parent 1471e05 commit 6ad0f3f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Local version of the website theme
WEBSITE_THEME=/my/path/to/website-theme
4 changes: 3 additions & 1 deletion docs/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -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']
Expand Down

0 comments on commit 6ad0f3f

Please sign in to comment.