Skip to content

Commit

Permalink
fix: use last syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux committed Jul 24, 2019
1 parent 9e6bd9d commit 92f36ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/prismic/link-resolver.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = function (doc) {
export default function (doc) {
if (doc.type === 'homepage') {
return '/'
}
Expand Down
5 changes: 3 additions & 2 deletions nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@ export default {
** Nuxt.js Modules
*/
modules: [
'~/modules/crawler',
'~/modules/static',
'prismic-nuxt'
],

prismic: {
endpoint: 'https://prismic-vuejs-showcase.prismic.io/api/v2',
linkResolver: require('./app/prismic/link-resolver')
endpoint: 'https://prismic-vuejs-showcase.prismic.io/api/v2'
},

/*
Expand Down

0 comments on commit 92f36ce

Please sign in to comment.