Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
component: 'AccountLogin'
},
'/account/password': {
generate: false,
component: 'AccountPassword'
},
'/account/register': {
package: 'vuefront/lib',
component: 'AccountRegister'
},
'/account/wishlist': {
generate: false,
component: 'Wishlist'
},
'/blog/category/:id': {
seo: seo.CategoryBlogSeo,
component: 'BlogCategory'
},
'/blog/post/:id': {
component: 'BlogPost',
seo: seo.PostSeo
},
'/contact': { component: 'Contact' },
'/page/:id': {
component: 'Page',
seo: seo.PageSeo
},
'/search': { component: 'Search' },
'/search/:slug': {
component: 'Search'
},
'/store/cart': {
seo: seo.PageSeo
},
'/search': { component: 'Search' },
'/search/:slug': {
component: 'Search'
},
'/store/cart': {
generate: false,
component: 'Cart'
},
'/store/checkout': {
generate: false,
component: 'Checkout'
},
'/store/category/:id': {
seo: seo.CategorySeo,
component: 'Category'
},
'/store/compare': {
generate: false,
component: 'Compare'
},
'/store/product/:id': {
component: 'Product',
seo: seo.ProductSeo
},
'/store/special': {
component: 'Special'
}
}
'/account/wishlist': {
generate: false,
component: 'Wishlist'
},
'/blog/category/:id': {
seo: seo.CategoryBlogSeo,
component: 'BlogCategory'
},
'/blog/post/:id': {
component: 'BlogPost',
seo: seo.PostSeo
},
'/contact': { component: 'Contact' },
'/page/:id': {
component: 'Page',
seo: seo.PageSeo
},
'/search': { component: 'Search' },
'/search/:slug': {
component: 'Search'
},
'/store/cart': {
generate: false,
component: 'Cart'
},
'/store/checkout': {
generate: false,
component: 'Checkout'
},
'/store/category/:id': {
seo: seo.CategorySeo,
component: 'Category'
},
'/account/register': {
package: 'vuefront/lib',
component: 'AccountRegister'
},
'/account/wishlist': {
generate: false,
component: 'Wishlist'
},
'/blog/category/:id': {
seo: seo.CategoryBlogSeo,
component: 'BlogCategory'
},
'/blog/post/:id': {
component: 'BlogPost',
seo: seo.PostSeo
},
'/contact': { component: 'Contact' },
'/page/:id': {
component: 'Page',
seo: seo.PageSeo
},
'/search': { component: 'Search' },
'/search/:slug': {
component: 'Search'
},
'/store/cart': {
generate: false,
component: 'Cart'
},
'/store/checkout': {
generate: false,
},
'/store/checkout': {
generate: false,
component: 'Checkout'
},
'/store/category/:id': {
seo: seo.CategorySeo,
component: 'Category'
},
'/store/compare': {
generate: false,
component: 'Compare'
},
'/store/product/:id': {
component: 'Product',
seo: seo.ProductSeo
},
'/store/special': {
component: 'Special'
}
}
const path = require('path')
let seoConfig = require('vuefront/seo').default
const _ = require('lodash')
const ApolloClient = require('apollo-boost').default
require('isomorphic-fetch')
const ampify = require('./plugins/ampify')
export default async function vuefrontModule(_moduleOptions) {
const isNuxtVersion2 = this.options.build.transpile
const moduleOptions = { ...this.options.vuefront, ..._moduleOptions }
const theme = process.env.VUEFRONT_THEME || 'default'
const defaultPort =
process.env.API_PORT ||
process.env.PORT ||
process.env.npm_package_config_nuxt_port ||
3000