diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index cdf7f31..6e3828b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 diff --git a/vite.config.ts b/vite.config.ts index bb04e26..3385cdf 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -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,