Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
wushuangs committed Nov 14, 2024
1 parent 7895a1d commit 4aa36e4
Showing 1 changed file with 17 additions and 42 deletions.
59 changes: 17 additions & 42 deletions packages/frontend/quasar.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,29 +112,37 @@ module.exports = configure(function (ctx) {
open: true, // opens browser window automatically,
proxy: {
'/bfl': {
target: process.env.URL,
// target: process.env.URL,
target: 'https://desktop.zhaohuaiyuan.myterminus.com/',
changeOrigin: true,
pathRewrite: {
'^/bfl': 'bfl'
}
},
'/server': {
target: process.env.URL,
// target: process.env.URL,
target: 'https://desktop.zhaohuaiyuan.myterminus.com/',
changeOrigin: true,
pathRewrite: {
'^/server': 'server'
}
},
'/api': {
target: process.env.URL,
// target: process.env.URL,
target: 'https://desktop.zhaohuaiyuan.myterminus.com/',
changeOrigin: true,
pathRewrite: {
'^/api': 'api'
}
},
'/seahub': {
target: process.env.URL,
target: `https://desktop.zhaohuaiyuan.myterminus.com`,
changeOrigin: true
},
'/ws': {
target: `wss://desktop.zhaohuaiyuan.myterminus.com`,
changeOrigin: true,
ws: true
}
},
port: 9000
Expand All @@ -159,44 +167,11 @@ module.exports = configure(function (ctx) {
},

pwa: {
workboxPluginMode: 'InjectManifest', // 'GenerateSW' or 'InjectManifest'
workboxOptions: {}, // only for GenerateSW

manifest: {
name: 'Olares',
short_name: 'Desktop',
description: 'Olares OS Launcher',
display: 'standalone',
orientation: 'portrait',
theme_color: 'transparent',
icons: [
{
src: 'icons/icon-128x128.png',
sizes: '128x128',
type: 'image/png'
},
{
src: 'icons/icon-192x192.png',
sizes: '192x192',
type: 'image/png'
},
{
src: 'icons/icon-256x256.png',
sizes: '256x256',
type: 'image/png'
},
{
src: 'icons/icon-384x384.png',
sizes: '384x384',
type: 'image/png'
},
{
src: 'icons/icon-512x512.png',
sizes: '512x512',
type: 'image/png'
}
]
}
workboxMode: 'generateSW', // or 'injectManifest'
injectPwaMetaTags: true,
swFilename: 'sw.js',
manifestFilename: 'manifest.json',
useCredentialsForManifestTag: false
},

// Full list of options: https://v2.quasar.dev/quasar-cli-webpack/developing-capacitor-apps/configuring-capacitor
Expand Down

0 comments on commit 4aa36e4

Please sign in to comment.