Skip to content

Commit

Permalink
feat(#542): add druxt to docs frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
Decipher committed Jul 26, 2022
1 parent 2cc749f commit 3958c44
Show file tree
Hide file tree
Showing 3 changed files with 536 additions and 5 deletions.
10 changes: 10 additions & 0 deletions docs/nuxt/nuxt.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
const baseUrl = process.env.GITPOD_WORKSPACE_ID
? `https://8080-${process.env.GITPOD_WORKSPACE_ID}.${process.env.GITPOD_WORKSPACE_CLUSTER_HOST}`
: process.env.BASE_URL || 'http://druxtjs.ddev.site'

export default {
// Target: https://go.nuxtjs.dev/config-target
target: 'static',
Expand Down Expand Up @@ -53,8 +57,14 @@ export default {
twitter: '@DruxtJS',
twitter_card: 'summary_large_image',
}],
'druxt-site',
],

// DruxtJS configuration.
druxt: {
baseUrl
},

// Content module configuration: https://go.nuxtjs.dev/config-content
content: {},

Expand Down
4 changes: 3 additions & 1 deletion docs/nuxt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@
"@tailwindcss/typography": "^0.4",
"core-js": "3.22.5",
"daisyui": "1.25.4",
"druxt-site": "^0.12.1",
"nuxt": "2.15.8",
"nuxt-social-meta": "1.0.0"
"nuxt-social-meta": "1.0.0",
"vue-server-renderer": "2.7.8"
},
"devDependencies": {
"@nuxt/postcss8": "1.1.3",
Expand Down
Loading

0 comments on commit 3958c44

Please sign in to comment.