brumbrum_brum
brumbrum_brum
Explore posts from servers
CDCloudflare Developers
Created by brumbrum_brum on 9/11/2024 in #general-help
AWS Route 53 Alias DNS
I am trying to connect my AWS api gateway to a CF domain using route 53. I have created an alias record inside my route 53 zone pointing to the gateway. The record is of type "A", and has a value of: "d-ID.execute-api.ZONE.amazonaws.com.". When I try and create a DNS record for this in the CF dashboard, I get an error stating that I cannot do it, because the value is not a valid IPV4 adress. What do I do?
19 replies
CDCloudflare Developers
Created by brumbrum_brum on 9/7/2024 in #pages-help
ENV variables with wrangler pages CLI (VITE REACT)
How do I add env variables to a deployment of a pages application? I am writing a github action that is suppossed to deploy my pages application, and I am trying to grap some secrets from the repo, and add them as env variables for the pages. I have tried this:
- name: Deploy to Cloudflare Pages
working-directory: ./apps/frontend
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}
MY_VARIABLE: ${{ secrets.MY_VALUE}}
run: |
wrangler pages deploy ./dist --project-name=frontend-preview --branch=main --commit-dirty=true
- name: Deploy to Cloudflare Pages
working-directory: ./apps/frontend
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}
MY_VARIABLE: ${{ secrets.MY_VALUE}}
run: |
wrangler pages deploy ./dist --project-name=frontend-preview --branch=main --commit-dirty=true
But MY_VARIABLE does not show up in the pages dashboard. How can this be done?
5 replies