Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a local SDK #147

Merged
merged 4 commits into from
Nov 1, 2023
Merged

Use a local SDK #147

merged 4 commits into from
Nov 1, 2023

Conversation

oskarrough
Copy link
Contributor

@oskarrough oskarrough commented Oct 30, 2023

Currently all our components load the SDK via NPM, and as such rely on the default Supabase database. So far so good.

But some times we want to use a different database. This PR routes makes sure the SDK is always accessed via ./libs/sdk.js instead of NPM. This way we can control it globally for the components in one place.

  • All SDK imports go via ./lib/sdk.js
  • Currently the Supabase "migration-test" project is used

@netlify
Copy link

netlify bot commented Oct 30, 2023

Deploy Preview for radio4000-components ready!

Name Link
🔨 Latest commit 22ed02f
🔍 Latest deploy log https://app.netlify.com/sites/radio4000-components/deploys/65422262ef6e140008854bd6
😎 Deploy Preview https://deploy-preview-147--radio4000-components.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

import components from './components/index.js'
import './index.css'

export default {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed this because it wasn't in use, and to avoid extra re-exports as per this article that was going around some weeks ago.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure our "perfs" were suffuring, but also if unused… alright

@oskarrough oskarrough merged commit 7b19e18 into main Nov 1, 2023
4 checks passed
@oskarrough oskarrough deleted the feat/local-sdk branch November 6, 2023 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants