add pwa app
This commit is contained in:
+24
-4
@@ -1,4 +1,5 @@
|
||||
const webpack = require("webpack")
|
||||
const {state} = require('./store/global')
|
||||
export default {
|
||||
// Global page headers (https://go.nuxtjs.dev/config-head)
|
||||
head: {
|
||||
@@ -39,7 +40,9 @@ export default {
|
||||
components: true,
|
||||
|
||||
// Modules for dev and build (recommended) (https://go.nuxtjs.dev/config-modules)
|
||||
buildModules: [],
|
||||
buildModules: [
|
||||
'@nuxtjs/pwa'
|
||||
],
|
||||
|
||||
// Modules (https://go.nuxtjs.dev/config-modules)
|
||||
modules: [
|
||||
@@ -47,13 +50,30 @@ export default {
|
||||
'@nuxtjs/axios',
|
||||
'@nuxtjs/auth'
|
||||
],
|
||||
|
||||
pwa: {
|
||||
manifest: {
|
||||
name: 'وزن گریتینگ',
|
||||
short_name: 'ArakRail Grating',
|
||||
// description: state().meta_description.fa,
|
||||
description: false,
|
||||
lang: 'fa',
|
||||
useWebmanifestExtension: false,
|
||||
start_url: '/fa/pwa'
|
||||
},
|
||||
meta: {
|
||||
mobileAppIOS: true,
|
||||
name: 'اراک ریل'
|
||||
},
|
||||
workbox: {
|
||||
cleanupOutdatedCaches: true
|
||||
}
|
||||
},
|
||||
// Axios module configuration (https://go.nuxtjs.dev/config-axios)
|
||||
axios: {
|
||||
proxy: true
|
||||
},
|
||||
proxy: {
|
||||
'/api': {target: 'http://127.0.0.1:7320'}
|
||||
'/api': {target: 'http://127.0.0.1:6096'}
|
||||
},
|
||||
|
||||
// Build Configuration (https://go.nuxtjs.dev/config-build)
|
||||
@@ -72,7 +92,7 @@ export default {
|
||||
},
|
||||
server: {
|
||||
host: '0.0.0.0',
|
||||
port: 7320
|
||||
port: 6096
|
||||
},
|
||||
serverMiddleware: ['~/api/index'],
|
||||
auth: {
|
||||
|
||||
Reference in New Issue
Block a user