Skip to content

Conversation

@timozander
Copy link
Contributor

@timozander timozander commented May 2, 2025

Types of changes

  • Bug fix (a non-breaking change which fixes an issue)
  • New feature (a non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Description

Similar to #450, I faced issues when deploying this module to a Cloudflare worker. It would not find the supabase runtime config on the server-side.

I tried to reproduce it, and passing the event makes the runtime config work correctly

  return {
    a: useRuntimeConfig().public.supabase, // <- missing keys
    b: useRuntimeConfig(event).public.supabase, // <- works
  };

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes (if not applicable, please state why)

@netlify
Copy link

netlify bot commented May 2, 2025

👷 Deploy request for n3-supabase pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 1588ec3

@larbish larbish merged commit 548e21e into nuxt-modules:main May 5, 2025
1 check passed
@timozander timozander deleted the patch-1 branch May 5, 2025 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants