Skip to content

Commit

Permalink
fixed admin path for local dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Kelly committed Apr 14, 2020
1 parent a72a4b0 commit 7536bbb
Show file tree
Hide file tree
Showing 5 changed files with 107 additions and 11 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,4 @@ sw.*

#Awake CMS
static/api
static/admin
2 changes: 1 addition & 1 deletion cms/netlify/build/copy-static-to-dist.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const ncp = require('ncp').ncp
ncp.limit = 16

export default () => {
ncp(`${__dirname}/../static`, `${__dirname}/../../../dist`, (err) => {
ncp(`${__dirname}/../static`, `${__dirname}/../../../static`, (err) => {
if (err) {
return console.error(err)
}
Expand Down
2 changes: 2 additions & 0 deletions cms/netlify/hooks/beforeBuild.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import generatePostApi from '../build/generate-post-api'
import generateCategoryApi from '../build/generate-category-api'
import copyStaticToDist from '../build/copy-static-to-dist'

export default () => {
generatePostApi()
generateCategoryApi()
copyStaticToDist()
}
108 changes: 99 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@
"prettier": "^1.16.4",
"rimraf": "^2.6.3",
"sass-loader": "^7.1.0",
"sharp": "^0.22.1"
"sharp": "^0.22.1",
"vue": "^2.6.11",
"vue-server-renderer": "^2.6.11",
"vue-template-compiler": "^2.6.11"
}
}

0 comments on commit 7536bbb

Please sign in to comment.