Commit 995b4a90 authored by JunHyung An's avatar JunHyung An
Browse files

Fixed `BASE_URL`

parent f966aa3e
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -39,6 +39,7 @@ pages:
  # override inherited cache settings since node_modules is not needed
  script:
     - npm run build
     - cp -a dist/. public/
  artifacts:
    paths:
      - public
+11 −1
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
  transpileDependencies: true,
  publicPath: publicPath()
})