You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use the following workflow to deploy my website:
name: Deploy to NuxtHubon: pushjobs:
deploy:
name: "Deploy to NuxtHub"runs-on: ubuntu-latestenvironment:
name: ${{ github.ref_name == 'main' && 'production' || 'preview' }}url: ${{ steps.deploy.outputs.deployment-url }}permissions:
contents: readid-token: writesteps:
- uses: actions/checkout@v4
- name: Install bunuses: oven-sh/setup-bun@v1
- name: Install dependenciesrun: bun install
- name: Build applicationrun: bun run buildenv:
NUXT_UI_PRO_LICENSE: ${{ secrets.NUXT_UI_PRO_LICENSE }}NUXT_SITE_URL: ${{ steps.deploy.outputs.deployment-url }} # not working: deploy is not started yet
- name: Deploy to NuxtHubuses: nuxt-hub/action@v1id: deploywith:
project-key: eutimo-1zgd
Is there a way to retrieve the deployment-url earlier, or to set it after the build phase? I cannot retrieve the commit hash, as it is generated by Cloudflare. Therefore, using the first part of github.sha is not an option. It's actually feasible what I'm attempting to do?
The text was updated successfully, but these errors were encountered:
Thank you for the reply, @atinux. I use the site URL for the Nuxt SEO module, primarily for OG images that are pre-rendered by the module, so I can’t use useRequestURL. To be honest, my situation is not a big problem, but it would be nice to have the ability to inject some NuxtHub variables in the app, like the generated deployment ID, into the environment.
I use the following workflow to deploy my website:
Is there a way to retrieve the deployment-url earlier, or to set it after the build phase? I cannot retrieve the commit hash, as it is generated by Cloudflare. Therefore, using the first part of
github.sha
is not an option. It's actually feasible what I'm attempting to do?The text was updated successfully, but these errors were encountered: