Skip to content

Commit

Permalink
QUASAR_PUBLIC_PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
crudapi committed Jul 27, 2024
1 parent 6da64bf commit 8af6d7e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions quasar.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
/* eslint-env node */

module.exports = function ( ctx ) {
const publicPath = process.env.QUASAR_PUBLIC_PATH || "crudapi";

return {
// https://quasar.dev/quasar-cli/supporting-ts
supportTS: false,
Expand Down Expand Up @@ -84,8 +86,8 @@ module.exports = function ( ctx ) {
exclude: /node_modules/
})
},
publicPath: '/crudapi/',
distDir: `dist/${ctx.modeName}/crudapi`
publicPath: `${publicPath}`,
distDir: `dist/${ctx.modeName}/${publicPath}`
},

// Full list of options: https://quasar.dev/quasar-cli/quasar-conf-js#Property%3A-devServer
Expand Down

0 comments on commit 8af6d7e

Please sign in to comment.