KiteK
Convex Community4mo ago
1 reply
Kite

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>
Was this page helpful?