diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2020-01-29 12:22:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-29 12:22:09 +0100 |
commit | 3e5f329cd8c9692e24f5fd56a5e4189bf2202e0d (patch) | |
tree | 8f9140f2326df571a6990df6e9cbd1525f19e374 /nuxt.config.js | |
parent | 3c2ac6715dfffc2eda38e014ed0b4986ccc7f75a (diff) | |
parent | 0a8355312990db95de3aa4e946b907ed0abf5a12 (diff) | |
download | puszcza-3e5f329cd8c9692e24f5fd56a5e4189bf2202e0d.tar.gz puszcza-3e5f329cd8c9692e24f5fd56a5e4189bf2202e0d.zip |
Merge pull request #26 from 19pdh/feature/json-api
Feature/json api
Diffstat (limited to 'nuxt.config.js')
-rw-r--r-- | nuxt.config.js | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/nuxt.config.js b/nuxt.config.js index f454cac..7c63f0c 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -1,11 +1,11 @@ -import k from './api' +import k from './api/kronikarz' const BASE_URL = process.env.DEPLOY_PRIME_URL || 'http://localhost:3000' export default { mode: 'universal', server: { - host: '0.0.0.0' + host: '0.0.0.0', }, /* ** Headers of the page @@ -13,7 +13,7 @@ export default { head: { htmlAttrs: { lang: 'pl', - prefix: 'og: http://ogp.me/ns#' + prefix: 'og: http://ogp.me/ns#', }, title: '19 PDH Puszcza', meta: [ @@ -23,32 +23,32 @@ export default { { hid: 'description', name: 'description', - content: process.env.npm_package_description || '' + content: process.env.npm_package_description || '', }, { name: 'google-site-verification', - content: 'V9-RG4-ertDzO9hqxuG29PkDUM8PGqaSOYUMiMaGUOY' + content: 'V9-RG4-ertDzO9hqxuG29PkDUM8PGqaSOYUMiMaGUOY', }, { hid: 'og:image', name: 'og:image', - content: `${BASE_URL}/assets/og/default.jpg` - } + content: `${BASE_URL}/assets/og/default.jpg`, + }, ], link: [ { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }, { href: 'https://fonts.googleapis.com/css?family=Roboto+Slab&display=swap', - rel: 'stylesheet' - } - ] + rel: 'stylesheet', + }, + ], }, env: { - baseUrl: process.env.DEPLOY_URL || 'http://localhost:3000' + baseUrl: process.env.DEPLOY_URL || 'http://localhost:3000', }, generate: { - routes: k.getPosts().map(post => post.route) + routes: k.getPosts().map((post) => post.route), }, /* ** Customize the progress-bar color @@ -72,7 +72,7 @@ export default { modules: [ // Doc: https://axios.nuxtjs.org/usage '@nuxtjs/axios', - '@nuxtjs/pwa' + '@nuxtjs/pwa', ], /* ** Axios module configuration @@ -92,14 +92,14 @@ export default { fs: 'empty', child_process: 'empty', tls: 'empty', - net: 'empty' + net: 'empty', } } config.module.rules.push({ test: /\.md$/, - use: ['raw-loader'] + use: ['raw-loader'], }) - } + }, }, hooks: { generate: { @@ -107,11 +107,11 @@ export default { console.log(route) console.log(path) console.log(errors) - } - } + }, + }, }, loading: { color: '#507b34', - height: '5px' - } + height: '5px', + }, } |