rawwerks
rawwerks
CDCloudflare Developers
Created by rawwerks on 12/30/2023 in #pages-help
PYTHON_VERSION = null?
got it, i just am hoping to avoid having to re-check that every time they change it.
13 replies
CDCloudflare Developers
Created by rawwerks on 12/30/2023 in #pages-help
PYTHON_VERSION = null?
hardsetting to 3.11.5 worked btw, thank you so much @Cyb3r-Jok3 ! saves me like 2 mins every build.
13 replies
CDCloudflare Developers
Created by rawwerks on 12/30/2023 in #pages-help
PYTHON_VERSION = null?
is there some default variable i can use so that i don't need to check forever what the default is? like $DEFAULT_PYTHON?
13 replies
CDCloudflare Developers
Created by rawwerks on 12/30/2023 in #pages-help
PYTHON_VERSION = null?
lemme try now.
13 replies
CDCloudflare Developers
Created by rawwerks on 12/30/2023 in #pages-help
PYTHON_VERSION = null?
oh, got it. so it's already got that installed
13 replies
CDCloudflare Developers
Created by rawwerks on 12/30/2023 in #pages-help
PYTHON_VERSION = null?
is there a way i can cache the python install so it doesn't take up so much time with every new build?
13 replies
CDCloudflare Developers
Created by rawwerks on 12/30/2023 in #pages-help
PYTHON_VERSION = null?
yeah i don't need a different version, i don't nee python at all but i can't override the auto-detect without moving my python code to .gitignore (which i don't want to do because i need to develop the backend in the same repo.)
13 replies
CDCloudflare Developers
Created by rawwerks on 12/30/2023 in #pages-help
PYTHON_VERSION = null?
Installing python null
11:13:43.488 python-build null /opt/buildhome/.asdf/installs/python/null
11:13:43.521 python-build: definition not found: null
11:13:43.530 Error: Exit with error code: 1
11:13:43.530 at ChildProcess.<anonymous> (/snapshot/dist/run-build.js)
11:13:43.531 at Object.onceWrapper (node:events:652:26)
11:13:43.531 at ChildProcess.emit (node:events:537:28)
11:13:43.531 at ChildProcess._handle.onexit (node:internal/child_process:291:12)
11:13:43.540 Failed: build command exited with code: 1
11:13:44.417 Failed: error occurred while running build command
Installing python null
11:13:43.488 python-build null /opt/buildhome/.asdf/installs/python/null
11:13:43.521 python-build: definition not found: null
11:13:43.530 Error: Exit with error code: 1
11:13:43.530 at ChildProcess.<anonymous> (/snapshot/dist/run-build.js)
11:13:43.531 at Object.onceWrapper (node:events:652:26)
11:13:43.531 at ChildProcess.emit (node:events:537:28)
11:13:43.531 at ChildProcess._handle.onexit (node:internal/child_process:291:12)
11:13:43.540 Failed: build command exited with code: 1
11:13:44.417 Failed: error occurred while running build command
is there a better way to prevent pages from installing python?
13 replies
CDCloudflare Developers
Created by rawwerks on 11/9/2023 in #workers-help
use node `stream` or workaround for sveltekit in CF?
some work ahead of me:
09:47:47.932 > Using @sveltejs/adapter-cloudflare
09:47:48.948 ✘ [ERROR] Could not resolve "node:stream"
09:47:48.948
09:47:48.949 .svelte-kit/output/server/entries/pages/_page.svelte.js:6:7:
09:47:48.949 6 │ import "node:stream";
09:47:48.949 ╵ ~~~~~~~~~~~~~
09:47:48.949
09:47:48.949 The package "node:stream" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
09:47:48.949
09:47:48.949 ✘ [ERROR] Could not resolve "node:buffer"
09:47:47.932 > Using @sveltejs/adapter-cloudflare
09:47:48.948 ✘ [ERROR] Could not resolve "node:stream"
09:47:48.948
09:47:48.949 .svelte-kit/output/server/entries/pages/_page.svelte.js:6:7:
09:47:48.949 6 │ import "node:stream";
09:47:48.949 ╵ ~~~~~~~~~~~~~
09:47:48.949
09:47:48.949 The package "node:stream" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
09:47:48.949
09:47:48.949 ✘ [ERROR] Could not resolve "node:buffer"
17 replies
CDCloudflare Developers
Created by rawwerks on 11/9/2023 in #workers-help
use node `stream` or workaround for sveltekit in CF?
ok thanks i'll dig in some more. i just added the flag to my pages instance and can build from there.
17 replies
CDCloudflare Developers
Created by rawwerks on 11/9/2023 in #workers-help
use node `stream` or workaround for sveltekit in CF?
ok so your guidance would be like this?
import {Readable,Transform} from 'node:stream';
import { Buffer } from 'node:buffer';
import {Readable,Transform} from 'node:stream';
import { Buffer } from 'node:buffer';
17 replies
CDCloudflare Developers
Created by rawwerks on 11/9/2023 in #workers-help
use node `stream` or workaround for sveltekit in CF?
i fixed buffer this way...
17 replies
CDCloudflare Developers
Created by rawwerks on 11/9/2023 in #workers-help
use node `stream` or workaround for sveltekit in CF?
ok . what about adding https://www.npmjs.com/package/stream to my package.json?
17 replies
CDCloudflare Developers
Created by rawwerks on 11/9/2023 in #workers-help
use node `stream` or workaround for sveltekit in CF?
so something like this?
export default defineConfig({
// other config
resolve: {
alias: {
stream: 'node:stream'
}
}
})
export default defineConfig({
// other config
resolve: {
alias: {
stream: 'node:stream'
}
}
})
17 replies
CDCloudflare Developers
Created by rawwerks on 9/17/2023 in #workers-help
sending HTML content to IFTTT every new post
found a way around needing CF Workers (https://raw.works/automating-social-media-posts-for-hugo-sites/) - but i would still be very interested in learning how to use workers, if anyone has some suggestions for a simple worker webhook.
2 replies
CDCloudflare Developers
Created by rawwerks on 8/28/2023 in #pages-help
can i schedule recurring re-deployments / re-builds?
Ok great, thank you for clarifying!
4 replies
CDCloudflare Developers
Created by rawwerks on 8/28/2023 in #pages-help
can i schedule recurring re-deployments / re-builds?
found this suggestion from @skye_31 in #pages-discussions : https://futurestud.io/tutorials/github-actions-trigger-builds-on-schedule-cron , but would still appreciate advice on the best workflow. the advice ~2.5 years ago was to cron an empty commit to trick CF Pages into redeploying on schedule. is this still the best solution?
4 replies
CDCloudflare Developers
Created by rawwerks on 8/28/2023 in #pages-help
can i schedule recurring re-deployments / re-builds?
i'm seeing the "Deploy hooks", which i guess i could set up cron or Zapier or IFTTT to ping on a schedule. i'm curious if there is something equivalent built into GitHub Actions or CF Workers/Pages. (i'd rather not add an outside dependency if i don't have to.)
4 replies