Skip to content

Commit

Permalink
fix: faster deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
riderx committed Oct 18, 2024
1 parent 87cccf3 commit a4dbdfc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: warp-ubuntu-latest-x64-4x-spot
steps:
- uses: actions/checkout@v4
- name: Setup bun
Expand Down
4 changes: 3 additions & 1 deletion src/pages/register.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
import Layout from '@/layouts/Layout.astro'
import VueRegister from '@/vue-pages/register.vue'
const capchatKey = import.meta.env.CLOUDFLARE_TURNSTILE_SITE_KEY
---
<script is:inline src="https://challenges.cloudflare.com/turnstile/v0/api.js" async defer></script>
<Layout><VueRegister locale={Astro.locals.locale} client:load /></Layout>
<Layout><VueRegister locale={Astro.locals.locale} client:load captchaKey={capchatKey} /></Layout>
10 changes: 7 additions & 3 deletions src/vue-pages/register.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@ import { openMessenger } from '@/services/bento'
import { type Locales } from '@/services/locale'
import { getRemoteConfig, useSupabase } from '@/services/supabase'
import translations from '@/services/translations'
import { onMounted, ref } from 'vue'
import { ref } from 'vue'
import { toast } from 'vue-sonner'
const props = defineProps<{ locale: Locales }>()
const props = defineProps<{
locale: Locales,
captchaKey: string
}>()
const CLOUDFLARE_TURNSTILE_SITE_KEY = props.captchaKey
const CLOUDFLARE_TURNSTILE_SITE_KEY = import.meta.env.CLOUDFLARE_TURNSTILE_SITE_KEY
const isLoading = ref(false)
const enableCaptcha = ref(!!CLOUDFLARE_TURNSTILE_SITE_KEY)
Expand Down

0 comments on commit a4dbdfc

Please sign in to comment.