Cloudflare Deployment Woes #74
-
is this correct? name: Build Static Site
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
permissions:
contents: write
jobs:
build:
uses: maclong9/web-ui/.github/workflows/build.yml@main this is the error message when i lauch the site: Server error: isLocalhost is not defined
ReferenceError: isLocalhost is not defined
at onRequest (functionsWorker-0.17881157357171618.js:39:5)
at next (functionsWorker-0.17881157357171618.js:515:32)
at Object.fetch (functionsWorker-0.17881157357171618.js:529:20) |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 2 replies
-
First of all, thank you for trying WebUI! Mind dropping a repo or something? By any chance are you using the |
Beta Was this translation helpful? Give feedback.
-
https://github.com/soursopio/tunji-io This is a replica of your portfolio repo |
Beta Was this translation helpful? Give feedback.
-
still receiving the same error even after removing the CloudFunctions.swift file, what are your build settings on cloudflare? |
Beta Was this translation helpful? Give feedback.
-
![]() |
Beta Was this translation helpful? Give feedback.
-
Server error: isLocalhost is not defined the error still persists |
Beta Was this translation helpful? Give feedback.
This file will be the issue: https://github.com/soursopio/tunji-io/blob/main/Sources/Application/CloudFunctions.swift
it creates a cloudflare functions directory by fetching js scripts from my personal cdn.
Remove this from here and its reference in
Application.swift
and should be good to go.