Commit 4f9a279f authored by Sophia Manicor's avatar Sophia Manicor
Browse files

Updating publicPath

parent 4a7d7476
Loading
Loading
Loading
Loading
Loading
+10 −3
Original line number Diff line number Diff line
const { defineConfig } = require('@vue/cli-service')

function publicPath () {
  if (process.env.CI_PAGES_URL) {
    return new URL(process.env.CI_PAGES_URL).pathname
  } else {
    return '/'
  }
}

module.exports = defineConfig({
  transpileDependencies: true,
  publicPath: process.env.NODE_ENV === 'production'
  ? '/' + process.env.CI_PROJECT_NAME + '/'
  : '/',
  publicPath: publicPath(),
  outputDir: 'public'
})