Magick
Magick
CDCloudflare Developers
Created by Magick on 7/18/2024 in #pages-help
workers.api.error.script_not_found [code: 8000068]
Hello I have two Next js web applications, that, after some experimenting, builds and deploys. However nothing displays in the browser. And when tailing the logs in both, I see the same:
workers.api.error.script_not_found [code: 8000068]
workers.api.error.script_not_found [code: 8000068]
Does anyone know how to resolve this?
16 replies
CDCloudflare Developers
Created by Magick on 7/18/2024 in #pages-help
Failed: build output directory contains links to files that can't be accessed
Hello I'm trying to build and deploy a Next.js application on CF Pages, but, the build ultimately fails with:
08:04:22.211 Tasks: 6 successful, 6 total
08:04:22.211 Cached: 0 cached, 6 total
08:04:22.211 Time: 3m38.054s
08:04:22.211
08:04:24.798 Finished
08:04:24.799 Note: No functions dir at /functions found. Skipping.
08:04:24.799 Validating asset output directory
08:04:26.637 Failed: build output directory contains links to files that can't be accessed
08:04:22.211 Tasks: 6 successful, 6 total
08:04:22.211 Cached: 0 cached, 6 total
08:04:22.211 Time: 3m38.054s
08:04:22.211
08:04:24.798 Finished
08:04:24.799 Note: No functions dir at /functions found. Skipping.
08:04:24.799 Validating asset output directory
08:04:26.637 Failed: build output directory contains links to files that can't be accessed
I did find a github issue about this - https://github.com/cloudflare/workers-sdk/issues/2674 - which is closed, but there isnt any clear solution to this. Can anyone help?
1 replies
CDCloudflare Developers
Created by Magick on 7/14/2024 in #pages-help
Bun and Environment Variables - how?
I'm trying to read environment variables and everything I try seems to fail. Here are some of the attempts and issues. - Using import { env } from "bun"; results in ERROR: Could not resolve "bun". - const test_env = process.env.TEST_ENV; results in Uncaught ReferenceError: process is not defined
17 replies
CDCloudflare Developers
Created by Magick on 7/12/2024 in #pages-help
Error: Dynamic require of "node:buffer" is not supported
I re-deployed my sveltekit pages project. I hadnt added any new dependencies. I also havent upgraded any existing dependencies. However, I'm now getting an error 500. And when I tail the logs I see:
Error: Dynamic require of "node:buffer" is not supported
Error: Dynamic require of "node:buffer" is not supported
Any idea how I resolve this?
2 replies
CDCloudflare Developers
Created by Magick on 7/2/2024 in #pages-help
Pages, Sveltekit and Environment variables
Hello, I'm trying to use Cloudflare pages to deloy our web application. However I'm getting errors in the build for each env var, public or private.
Error: Module '"$env/static/public"' has no exported member 'PUBLIC_SUPABASE_URL'.
Error: Module '"$env/static/public"' has no exported member 'PUBLIC_SUPABASE_URL'.
I've tried adding these in both the wrangler.tom and in the settings > environment variables tab. Neither has any effect on the build errors. My build command, from the package.json file is "build": "npx svelte-kit sync && npx svelte-check && vite build", Any help is appreciated. ---- It seems many others are having the same problem and no one has found a solution.
7 replies