Kite
Kite3w ago

My CF Pages webapp still uses dev database in production

As the title says. My app is deployed on cloudflare pages as a static site built with SvelteKit. I followed the instructions carefully, added production env values to Cloudflare but yet the database being used in production is the development version. At this point i'm not sure what to do, so any help would be greatly appreciated. Below is my root layout.svelte:
<script lang="ts">
import { setupConvex } from 'convex-svelte';
import { PUBLIC_CONVEX_URL } from '$env/static/public';
import './layout.css';

setupConvex(PUBLIC_CONVEX_URL);
let { children } = $props();
</script>

<div class="min-h-screen bg-slate-50 text-slate-900">
{@render children()}
</div>
<script lang="ts">
import { setupConvex } from 'convex-svelte';
import { PUBLIC_CONVEX_URL } from '$env/static/public';
import './layout.css';

setupConvex(PUBLIC_CONVEX_URL);
let { children } = $props();
</script>

<div class="min-h-screen bg-slate-50 text-slate-900">
{@render children()}
</div>
1 Reply
Convex Bot
Convex Bot3w ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!

Did you find this page helpful?