about summary refs log tree commit diff
path: root/nuxt.config.js
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-01-29 11:21:51 +0100
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-01-29 11:21:51 +0100
commit6f5413879fc6c4afe04cde9bb930aa9182c57974 (patch)
tree49c1b39eb62679db9617aeb6508b48d0447e3d0f /nuxt.config.js
parente7823de0c8160b0b7c77ce24040724b82b58b6f7 (diff)
downloadpuszcza-6f5413879fc6c4afe04cde9bb930aa9182c57974.tar.gz
puszcza-6f5413879fc6c4afe04cde9bb930aa9182c57974.zip
Fix path list
Diffstat (limited to 'nuxt.config.js')
-rw-r--r--nuxt.config.js40
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',
+  },
 }