mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 23:22:02 +00:00
docs: add support for WEBSITE_THEMe env variable
This commit is contained in:
parent
1471e0566f
commit
6ad0f3f157
2
docs/.env.example
Normal file
2
docs/.env.example
Normal file
@ -0,0 +1,2 @@
|
||||
# Local version of the website theme
|
||||
WEBSITE_THEME=/my/path/to/website-theme
|
@ -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']
|
||||
|
Loading…
Reference in New Issue
Block a user