85 lines
2.8 KiB
JavaScript
85 lines
2.8 KiB
JavaScript
const title = 'Zaimki.pl';
|
||
const description = 'To narzędzie udostępnia 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.';
|
||
const banner = process.env.BASE_URL + '/banner/zaimki.png';
|
||
const colour = '#C71585';
|
||
|
||
const bodyParser = require('body-parser');
|
||
|
||
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 },
|
||
{ hid: 'theme-color', name: 'theme-color', content: colour },
|
||
|
||
{ 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',
|
||
'@nuxtjs/axios',
|
||
],
|
||
pwa: {
|
||
manifest: {
|
||
name: title,
|
||
short_name: title,
|
||
description: description,
|
||
background_color: '#ffffff',
|
||
theme_color: colour,
|
||
lang: 'pl',
|
||
}
|
||
},
|
||
build: {
|
||
extend (config, ctx) {
|
||
config.module.rules.push({
|
||
test: /\.csv|\.tsv$/,
|
||
loader: 'csv-loader',
|
||
options: {
|
||
dynamicTyping: true,
|
||
header: true,
|
||
skipEmptyLines: true,
|
||
}
|
||
})
|
||
},
|
||
},
|
||
env: {
|
||
baseUrl: process.env.BASE_URL,
|
||
secret: process.env.SECRET,
|
||
},
|
||
serverMiddleware: {
|
||
'/': bodyParser.json(),
|
||
'/nouns': '~/server/nouns.js',
|
||
'/banner': '~/server/banner.js',
|
||
},
|
||
axios: {
|
||
baseURL: process.env.BASE_URL,
|
||
}
|
||
|
||
}
|