Skip to content

Commit

Permalink
Merge pull request #6 from kabaluyot/feature/add-pwa-options
Browse files Browse the repository at this point in the history
feat: add pwa options
  • Loading branch information
kabaluyot authored Jun 22, 2020
2 parents 18875df + 3d33807 commit 181a05b
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ APP_NAME='Daks.ts'
APP_DESCRIPTION='By kabaluyot'
APP_HOST=localhost
APP_PORT=3000
APP_URL=http://localhost:3000

API_URL=https://jsonplaceholder.typicode.com
57 changes: 56 additions & 1 deletion nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,38 @@ export default {
hid: 'description',
name: 'description',
content: process.env.APP_DESCRIPTION || ''
},
// OG Tag setup
// https://vue-meta.nuxtjs.org/api/#meta
{
property: 'og:type',
content: 'website',
vmid: 'og:type'
},
{
property: 'og:title',
content: process.env.APP_NAME,
vmid: 'og:title'
},
{
property: 'og:description',
content: process.env.APP_DESCRIPTION,
vmid: 'og:description'
},
{
property: 'og:site_name',
content: process.env.APP_URL,
vmid: 'og:site_name'
},
{
property: 'og:url',
content: process.env.APP_URL,
vmid: 'og:url'
},
{
property: 'og:image',
content: process.env.APP_URL + '/icon.png',
vmid: 'og:image'
}
],
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }]
Expand Down Expand Up @@ -58,7 +90,30 @@ export default {
** Axios module configuration
** See https://axios.nuxtjs.org/options
*/
axios: {},
axios: {
debug: process.env.NODE_ENV !== 'production',
headers: {
common: {
Accept: 'application/json, text/plain, */*'
}
}
},
/**
* PWA module configuration
* https://pwa.nuxtjs.org/setup.html
*/
pwa: {
meta: {
title: process.env.APP_NAME
},
manifest: {
name: process.env.APP_NAME,
short_name: process.env.APP_NAME,
description: process.env.APP_DESCRIPTION,
start_url: process.env.APP_URL,
lang: 'en'
}
},
/*
** vuetify module configuration
** https://github.com/nuxt-community/vuetify-module
Expand Down

0 comments on commit 181a05b

Please sign in to comment.