zachery
zachery
CDCloudflare Developers
Created by zachery on 1/7/2025 in #pages-help
SvelteKit private environment variables not exported.
Hello! During when my project is being built, I get errors like this:
src/lib/file.ts (1:9): "PRIVATE_ENVIRONMEN_VARIABLE" is not exported by "virtual:$env/static/private", imported by "src/lib/file.ts"
src/lib/file.ts (1:9): "PRIVATE_ENVIRONMEN_VARIABLE" is not exported by "virtual:$env/static/private", imported by "src/lib/file.ts"
My sveltekit project builds fine locally, maybe because I actually have a .env file. On CF Pages, I set the environment variables in the settings to the same as my local, but it looks like it's not able to find them during the build. I've looked around I saw that people have put the environment variables file into their github repo, but I wanted to ask here if there was another solution. I'm currently don't have an .env in my repo.
1 replies
CDCloudflare Developers
Created by zachery on 3/27/2024 in #workers-help
Suggestion for rate limiting
Hi, I created an API in workers for a few users. They call the API very often, so I need a cost effective way to rate limit the users' requests. I looked at storage methods that Cloudflare provides, but I'm not to sure if they are a fit for my requirements. Any suggestions would be appreciated!
6 replies
CDCloudflare Developers
Created by zachery on 2/23/2024 in #pages-help
Getting 403 Forbidden nginx when trying to call external api
No description
4 replies