import firebaseConfig from '../shared/firebaseConfig' ; import getRoutes from './assets/getRoutes' ; export default async ( ) => { const routes = await getRoutes ( ) ; return { target : 'static' , mode : 'universal' , head : { title : process . env . npm_package_name || '' , meta : [ { charset : 'utf-8' } , { name : 'viewport' , content : 'width=device-width, initial-scale=1' } , { hid : 'description' , name : 'description' , content : process . env . npm_package_description || '' } ] , script : [ { type : "text/javascript" , src : "https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js" } ] , link : [ { rel : 'icon' , type : 'image/x-icon' , href : '/favicon.ico' } , { rel : 'stylesheet' , href : 'https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css' } ] } , loading : { color : '#039be5' } , css : [ '~/assets/styles/global.scss' ] , plugins : [ '~/plugins/firebaseInit' ] , buildModules : [ '@nuxtjs/eslint-module' , '@nuxt/typescript-build' ] , modules : [ [ '@nuxtjs/sitemap' , { path : '/sitemap.xml' , hostname : 'https://firebaseopensource.com' , cacheTime : 1000 * 60 * 60 * 24 , routes } ] , [ '@nuxtjs/firebase' , { config : firebaseConfig , services : { firestore : true } } ] ] , generate : { fallback : true , routes , exclude : [ ] } , build : { extend ( ) { } } } ; } ;