Skip to content

Commit

Permalink
gh-pages fix (#45)
Browse files Browse the repository at this point in the history
* gh-pages fix

* Revert gh-page workflow back to push only
  • Loading branch information
s-egge authored Dec 30, 2024
1 parent f061ab4 commit 3e30924
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gh-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
run: |
npm run build
- name: deploy frontend to gh pages
uses: crazy-max/ghaction-github-pages@v4 # https://github.com/crazy-max/ghaction-github-pages
uses: crazy-max/ghaction-github-pages@v4 # https://github.com/crazy-max/ghaction-github-pages
with:
target_branch: gh-pages
build_dir: dist
Expand Down
31 changes: 16 additions & 15 deletions vite.config.mjs
Original file line number Diff line number Diff line change
@@ -1,40 +1,41 @@
import { defineConfig, loadEnv } from 'vite'
import vue from '@vitejs/plugin-vue'
import { fileURLToPath } from 'url'
import path from 'path'
import autoprefixer from 'autoprefixer'
import { defineConfig, loadEnv } from "vite"
import vue from "@vitejs/plugin-vue"
import { fileURLToPath } from "url"
import path from "path"
import autoprefixer from "autoprefixer"

const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)

export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd(), '')
const env = loadEnv(mode, process.cwd(), "")

return {
plugins: [vue()],
base: env.VITE_HOST_ADDRESS,
resolve: {
alias: {
'@': path.resolve(__dirname, 'src')
}
"@": path.resolve(__dirname, "src"),
},
},
css: {
preprocessorOptions: {
scss: {
additionalData: `
@use "@/assets/style-variables.scss" as *;
$font-path: "${env.VITE_FONT_PATH}";
`
}
}
`,
},
},
},
define: {
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__: false
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__: false,
},
postcss: {
plugins: [autoprefixer()]
plugins: [autoprefixer()],
},
server: {
port: 3000
}
port: 3000,
},
}
})

0 comments on commit 3e30924

Please sign in to comment.