Skip to content

Commit

Permalink
Fix BASE_PATH and node version
Browse files Browse the repository at this point in the history
  • Loading branch information
waeltken committed Apr 6, 2022
1 parent 91d92e8 commit b9c8062
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
branches:
- main

env:
BASE_PATH: cognitive-services-kitchen-sink

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -17,15 +20,14 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- uses: actions/setup-node@v2.1.5
- uses: actions/setup-node@v3
with:
node-version: "12"
node-version: "14"

- run: |
npm ci
npm run build
env:
BASE_URL: FemaleAIAppInnovationEcosystem
VUE_APP_FACE_API_KEY: ${{ secrets.VUE_APP_FACE_API_KEY }}
VUE_APP_SPEECH_API_KEY: ${{ secrets.VUE_APP_SPEECH_API_KEY }}
VUE_APP_IMAGE_API_URL: ${{secrets.VUE_APP_IMAGE_API_URL}}
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import vueJsx from "@vitejs/plugin-vue-jsx";

// https://vitejs.dev/config/
export default defineConfig({
base: process.env.BASE_URL ? `/${process.env.BASE_URL}` : "/",
base: process.env.BASE_PATH ? `/${process.env.BASE_PATH}` : "/",
plugins: [vue(), vueJsx()],
resolve: {
alias: {
Expand Down

0 comments on commit b9c8062

Please sign in to comment.