11// Configuration for your app
22// https://quasar.dev/quasar-cli/quasar-conf-js
33
4- module . exports = function ( ctx ) {
4+ module . exports = function ( ctx ) {
55 return {
66 // app boot file (/src/boot)
77 // --> boot files are part of "main.js"
@@ -16,7 +16,7 @@ module.exports = function(ctx) {
1616 // "roboto-font-latin-ext", // this or either "roboto-font", NEVER both!
1717
1818 "roboto-font" , // optional, you are not bound to it
19- "material-icons" // optional, you are not bound to it
19+ "material-icons" , // optional, you are not bound to it
2020 ] ,
2121
2222 framework : {
@@ -66,13 +66,13 @@ module.exports = function(ctx) {
6666 "QDate" ,
6767 "QPopupProxy" ,
6868 "QFile" ,
69- "QCardSection"
69+ "QCardSection" ,
7070 ] ,
7171
7272 directives : [ "Ripple" , "ClosePopup" ] ,
7373
7474 // Quasar plugins
75- plugins : [ "Notify" , "Cookies" ]
75+ plugins : [ "Notify" , "Cookies" ] ,
7676 } ,
7777
7878 // env: {
@@ -83,26 +83,18 @@ module.exports = function(ctx) {
8383 build : {
8484 env : ctx . dev
8585 ? {
86- API_URL : JSON . stringify (
87- `${ process . env . HTTP_PROTOCOL } ://${ process . env . DOMAIN_NAME } `
88- ) ,
89- WS_PING_PONG : JSON . stringify (
90- `${ process . env . WS_PROTOCOL } ://${ process . env . DOMAIN_NAME } /ws/ping-pong/`
91- ) ,
86+ API_URL : JSON . stringify ( `http://${ process . env . FULL_DOMAIN_NAME } ` ) ,
87+ WS_URL : JSON . stringify ( `ws://${ process . env . FULL_DOMAIN_NAME } ` ) ,
9288 GITHUB_KEY : JSON . stringify ( process . env . GITHUB_KEY ) ,
9389 GOOGLE_OAUTH2_KEY : JSON . stringify ( process . env . GOOGLE_OAUTH2_KEY ) ,
94- FACEBOOK_KEY : JSON . stringify ( process . env . FACEBOOK_KEY )
90+ FACEBOOK_KEY : JSON . stringify ( process . env . FACEBOOK_KEY ) ,
9591 }
9692 : {
97- API_URL : JSON . stringify (
98- `${ process . env . HTTP_PROTOCOL } ://${ process . env . DOMAIN_NAME } `
99- ) ,
100- WS_PING_PONG : JSON . stringify (
101- `${ process . env . WS_PROTOCOL } ://${ process . env . DOMAIN_NAME } /ws/ping-pong/`
102- ) ,
93+ API_URL : JSON . stringify ( `https://${ process . env . FULL_DOMAIN_NAME } ` ) ,
94+ WS_URL : JSON . stringify ( `$wss://${ process . env . FULL_DOMAIN_NAME } ` ) ,
10395 GITHUB_KEY : JSON . stringify ( process . env . GITHUB_KEY ) ,
10496 GOOGLE_OAUTH2_KEY : JSON . stringify ( process . env . GOOGLE_OAUTH2_KEY ) ,
105- FACEBOOK_KEY : JSON . stringify ( process . env . FACEBOOK_KEY )
97+ FACEBOOK_KEY : JSON . stringify ( process . env . FACEBOOK_KEY ) ,
10698 } ,
10799 scopeHoisting : true ,
108100 useNotifier : false ,
@@ -119,28 +111,28 @@ module.exports = function(ctx) {
119111 loader : "eslint-loader" ,
120112 exclude : / n o d e _ m o d u l e s / ,
121113 options : {
122- formatter : require ( "eslint" ) . CLIEngine . getFormatter ( "stylish" )
123- }
114+ formatter : require ( "eslint" ) . CLIEngine . getFormatter ( "stylish" ) ,
115+ } ,
124116 } ) ;
125- }
117+ } ,
126118 } ,
127119
128120 devServer : {
129121 headers : {
130122 "Access-Control-Allow-Origin" : "*" ,
131123 "Access-Control-Allow-Headers" :
132- "Origin, X-Requested-With, Content-Type, Accept"
124+ "Origin, X-Requested-With, Content-Type, Accept" ,
133125 } ,
134126 // https: true,
135127 port : 8080 ,
136- open : true // opens browser window automatically
128+ open : true , // opens browser window automatically
137129 } ,
138130
139131 // animations: "all", // --- includes all animations
140132 animations : "all" , //[],
141133
142134 ssr : {
143- pwa : false
135+ pwa : false ,
144136 } ,
145137
146138 pwa : {
@@ -158,30 +150,30 @@ module.exports = function(ctx) {
158150 {
159151 src : "statics/icons/icon-128x128.png" ,
160152 sizes : "128x128" ,
161- type : "image/png"
153+ type : "image/png" ,
162154 } ,
163155 {
164156 src : "statics/icons/icon-192x192.png" ,
165157 sizes : "192x192" ,
166- type : "image/png"
158+ type : "image/png" ,
167159 } ,
168160 {
169161 src : "statics/icons/icon-256x256.png" ,
170162 sizes : "256x256" ,
171- type : "image/png"
163+ type : "image/png" ,
172164 } ,
173165 {
174166 src : "statics/icons/icon-384x384.png" ,
175167 sizes : "384x384" ,
176- type : "image/png"
168+ type : "image/png" ,
177169 } ,
178170 {
179171 src : "statics/icons/icon-512x512.png" ,
180172 sizes : "512x512" ,
181- type : "image/png"
182- }
183- ]
184- }
173+ type : "image/png" ,
174+ } ,
175+ ] ,
176+ } ,
185177 } ,
186178
187179 cordova : {
@@ -211,7 +203,7 @@ module.exports = function(ctx) {
211203 builder : {
212204 // https://www.electron.build/configuration/configuration
213205 // appId: "quasarfrontend"
214- }
215- }
206+ } ,
207+ } ,
216208 } ;
217209} ;
0 commit comments