Skip to content

Commit

Permalink
fix: Use new env vars names on GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
achetronic committed Dec 20, 2023
1 parent f4c93c0 commit 7d0ca3d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ jobs:
- name: Build project
run: npm run build
env:
EMAILJS_ACCOUNT_PUBLIC_KEY: ${{ secrets.EMAILJS_ACCOUNT_PUBLIC_KEY }}
EMAILJS_SERVICE_ID: ${{ secrets.EMAILJS_SERVICE_ID }}
EMAILJS_TEMPLATE_ID: ${{ secrets.EMAILJS_TEMPLATE_ID }}
RECAPTCHA_V2_WEBSITE_PUBLIC_KEY: ${{ secrets.RECAPTCHA_V2_WEBSITE_PUBLIC_KEY }}
VITE_EMAILJS_USER_PUBLIC_KEY: ${{ secrets.EMAILJS_ACCOUNT_PUBLIC_KEY }}
VITE_EMAILJS_SERVICE_ID: ${{ secrets.EMAILJS_SERVICE_ID }}
VITE_EMAILJS_TEMPLATE_ID: ${{ secrets.EMAILJS_TEMPLATE_ID }}
VITE_RECAPTCHA_SITEKEY: ${{ secrets.RECAPTCHA_V2_WEBSITE_PUBLIC_KEY }}

- name: Upload production-ready build files
uses: actions/upload-artifact@v3
Expand Down
6 changes: 5 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ export default defineConfig({
plugins: [esbuildCommonjs(["react"])],
},
},
base: "/",
// ATTENTION:
// With custom domain only a slash is needed
// Using GH Pages, the entire repository name is required
base: "/application-new/",
// base: "/",
build: {
commonjsOptions: {
transformMixedEsModules: true,
Expand Down

0 comments on commit 7d0ca3d

Please sign in to comment.