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 Oct 6, 2022
1 parent 7503aba commit 5243ac3
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 @@ -17,8 +17,10 @@
"@tailwindcss/typography": "0.4.1",
"core-js": "3.25.1",
"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 5243ac3

Please sign in to comment.