NeoPrint3D
Explore posts from serversCDCloudflare Developers
•Created by NeoPrint3D on 6/2/2024 in #pages-help
How to have www.example.com redirect to example.com
I have it on cloudflare Pages with both www and non www have a dns alias to sniper-marketing.pages.dev
4 replies
CDCloudflare Developers
•Created by NeoPrint3D on 6/2/2024 in #pages-help
How to have www.example.com redirect to example.com
I tried that but it failed as it said url not found it works for the naked route
4 replies
CDCloudflare Developers
•Created by NeoPrint3D on 9/28/2023 in #pages-help
How to tune automatic deployment
name: Publish Web App to Cloudflare Pages
on:
push:
branches:
- master
- staging
- dev
paths:
- "web-app/"
jobs:
publish:
env:
NEXT_PUBLIC_SUPABASE_URL: ${{ github.ref == 'refs/heads/master' && secrets.SUPABASE_URL_PROD secrets.SUPABASE_URL_DEV }}
NEXT_PUBLIC_SUPABASE_ANON_KEY:
${{ github.ref == 'refs/heads/master' && secrets.SUPABASE_ANON_KEY_PROD secrets.SUPABASE_ANON_KEY_DEV }}
# NEXT_PUBLIC_NEXSCRIPT_API_URL: ${{ github.ref == 'refs/heads/master' && secrets.NEXSCRIPT_API_URL_PROD secrets.NEXSCRIPT_API_URL_DEV }}
NEXT_PUBLIC_NEXSCRIPT_API_KEY: ${{ github.ref == 'refs/heads/master' && secrets.NEXSCRIPT_API_KEY_PROD secrets.NEXSCRIPT_API_KEY_DEV }}
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
name: Publish to Cloudflare Pages
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/cache@v2
with:
path: web-app/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: npm install
working-directory: web-app
- name: Build
run: npm run build
working-directory: web-app
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: nexscript
directory: out
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
workingDirectory: web-app
wranglerVersion: "3"
10 replies
CDCloudflare Developers
•Created by NeoPrint3D on 9/28/2023 in #pages-help
How to tune automatic deployment
10 replies
CDCloudflare Developers
•Created by NeoPrint3D on 9/28/2023 in #pages-help
How to tune automatic deployment
The pages action
10 replies
CDCloudflare Developers
•Created by NeoPrint3D on 9/28/2023 in #pages-help
How to tune automatic deployment
I did that but I saw that in the next major version cloudflare action via wrangler publish is going to be deprecated
10 replies