cathalogrady
cathalogrady
Explore posts from servers
CDCloudflare Developers
Created by cathalogrady on 4/15/2025 in #general-help
522 error on new domain
I have a domain registered outside of cloudflare, which I successfully transferred so I can set DNS rules on cloudflare. This works perfectly and I have used this domain for about 2 years. Today I bought a new domain from cloudflare and set it up the same way as I did my old domain with ddns via caddy reverse proxy. The dns rules were correctly auto updated and point to the same IP as the DNS rules on the old domain. The problem is that, now, despite having new routes setup on caddy for that domain (caddy also successfully gets certs for it), it seems that cloudflare cannot reach my server and trying to access my website returns 522. I don't know how this new domain does not work, all of the troubleshooting for this error is not helpful as I have check: * I am pointing to the right IP * I am the admin so I can see that caddy is not being hit by cloudflare * The server is already reachable by other cloudflare IP's Any help would be appreciated, thanks.
11 replies
DDeno
Created by cathalogrady on 11/15/2024 in #help
Access project dependency through Deno API
Maybe I am solving the wrong problem here, but I want to copy a deno dependency into my esbuild bundle so that it can be accesable on the web. The specific dependency I want is svelte. The idea was to mark it as external in the esbuild build and then just copy the dependency into the dist/ folder, see my build.ts file here:
import esbuild from "esbuild"
import sveltePlugin from "esbuild-svelte"
import { sveltePreprocess } from "svelte-preprocess"

esbuild.build({
entryPoints: ["main.ts"],
// external: ["svelte"],
platform: "browser",
format: "esm",
outdir: "dist/",
bundle: true,
minify: false,
sourcemap: true,
plugins: [
sveltePlugin({
preprocess: sveltePreprocess(),
}),
],
})
import esbuild from "esbuild"
import sveltePlugin from "esbuild-svelte"
import { sveltePreprocess } from "svelte-preprocess"

esbuild.build({
entryPoints: ["main.ts"],
// external: ["svelte"],
platform: "browser",
format: "esm",
outdir: "dist/",
bundle: true,
minify: false,
sourcemap: true,
plugins: [
sveltePlugin({
preprocess: sveltePreprocess(),
}),
],
})
8 replies