Hello, i'm having a really annoying bug. i have deployed via wrangler and my website is working but

Hello, i'm having a really annoying bug. i have deployed via wrangler and my website is working but i'm not sure why it is showing data from my development instead of the production env variables. do you see anything wrong in my wrangler file?

name = "juproxy"
compatibility_date = "2024-10-04"
pages_build_output_dir = ".svelte-kit/cloudflare"

[[kv_namespaces]]
binding = "JUPROXY_KV"
id = "9221..."

[env.production.vars]
# General
PUBLIC_ORIGIN = "https://juproxy.com"
# Flask API
API_ADMIN_TOKEN = "secret..."
# Mail
RESEND_API_KEY = "re_..."
# Stripe
STRIPE_PRICE_ID = "price_..."
SECRET_STRIPE_WEBHOOK = "whsec_...."
SECRET_STRIPE_KEY = "sk_live_....

[[env.production.kv_namespaces]]
binding = "JUPROXY_KV"
id = "9221..."


inside my sveltekit app im accesing "PUBLIC_ORIGIN" env variable and it is giving me the localhost one, i also have a .env file locally should i remove it? not sure how to fix it

*if i remove my .env file, when running the following command:
pnpm run build && wrangler pages deploy

then it gives me an error on sveltekit build, what is the correct command to deploy then? using env variables from wrangler config file
Was this page helpful?