2020-07-22 13:19:23 -07:00
const title = 'Zaimki.pl' ;
2020-08-15 00:28:43 -07:00
const description = 'Udostępniamy tutaj linki do przykładów użycia zaimków i innych form płciowych – nie tylko normatywnych „on” i „ona”, lecz także form niebinarnych.' ;
2020-07-22 13:19:23 -07:00
const banner = process . env . BASE _URL + '/banner/zaimki.png' ;
2020-07-24 12:15:33 -07:00
const colour = '#C71585' ;
2020-07-22 13:19:23 -07:00
2020-08-04 07:15:41 -07:00
const bodyParser = require ( 'body-parser' ) ;
2020-07-22 13:19:23 -07:00
export default {
mode : 'universal' ,
target : 'server' ,
head : {
title : title ,
meta : [
{ charset : 'utf-8' } ,
{ hid : 'description' , name : 'description' , content : description } ,
{ name : 'viewport' , content : 'width=device-width, initial-scale=1' } ,
{ hid : 'apple-mobile-web-app-title' , name : 'apple-mobile-web-app-title' , content : title } ,
2020-07-24 12:15:33 -07:00
{ hid : 'theme-color' , name : 'theme-color' , content : colour } ,
2020-07-22 13:19:23 -07:00
{ hid : 'og:type' , property : 'og:type' , content : 'article' } ,
{ hid : 'og:title' , property : 'og:title' , content : title } ,
{ hid : 'og:description' , property : 'og:description' , content : description } ,
{ hid : 'og:site_name' , property : 'og:site_name' , content : title } ,
{ hid : 'og:logo' , property : 'og:logo' , content : banner } ,
{ hid : 'twitter:card' , property : 'twitter:card' , content : 'summary_large_image' } ,
{ hid : 'twitter:title' , property : 'twitter:title' , content : title } ,
{ hid : 'twitter:description' , property : 'twitter:description' , content : description } ,
{ hid : 'twitter:site' , property : 'twitter:site' , content : process . env . BASE _URL } ,
{ hid : 'twitter:image' , property : 'twitter:image' , content : banner } ,
] ,
link : [
{ rel : 'icon' , type : 'image/svg' , href : '/favicon.svg' }
] ,
} ,
css : [ ] ,
plugins : [
{ src : '~/plugins/vue-matomo.js' , ssr : false } ,
] ,
components : true ,
buildModules : [ ] ,
modules : [
'@nuxtjs/pwa' ,
2020-08-04 07:15:41 -07:00
'@nuxtjs/axios' ,
2020-07-22 13:19:23 -07:00
] ,
2020-07-24 12:15:33 -07:00
pwa : {
manifest : {
name : title ,
short _name : title ,
description : description ,
background _color : '#ffffff' ,
theme _color : colour ,
lang : 'pl' ,
}
} ,
2020-07-25 10:21:52 -07:00
build : {
extend ( config , ctx ) {
config . module . rules . push ( {
test : /\.csv|\.tsv$/ ,
loader : 'csv-loader' ,
options : {
dynamicTyping : true ,
header : true ,
skipEmptyLines : true ,
}
} )
} ,
} ,
2020-07-22 13:19:23 -07:00
env : {
2020-08-04 07:15:41 -07:00
baseUrl : process . env . BASE _URL ,
secret : process . env . SECRET ,
2020-07-22 13:19:23 -07:00
} ,
serverMiddleware : {
2020-08-04 07:15:41 -07:00
'/' : bodyParser . json ( ) ,
'/nouns' : '~/server/nouns.js' ,
2020-07-22 13:19:23 -07:00
'/banner' : '~/server/banner.js' ,
} ,
2020-08-04 07:15:41 -07:00
axios : {
baseURL : process . env . BASE _URL ,
}
2020-07-22 13:19:23 -07:00
}