-
Notifications
You must be signed in to change notification settings - Fork 187
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
chore (examples): Add authentication to the examples #2248
Conversation
✅ Deploy Preview for electric-next ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
9379945
to
1219e9d
Compare
1219e9d
to
781d6a3
Compare
e8ddafd
to
df189cb
Compare
- name: Deploy Linearlite | ||
working-directory: ./examples/linearlite | ||
run: pnpm sst deploy --stage production | ||
# - name: Deploy Linearlite |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're keeping this one out because it needs more work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great work!
Since the cloud API will require authentication we need to authenticate the requests to add the example DBs.
I modified the TODO app to authenticate the request. We need to do the same for the other examples.
Make sure that the
ELECTRIC_ADMIN_API
secret in GH points to the right path! The path should now include/api
at the end.Deployment of examples in CI relies on 2 new secrets
ELECTRIC_ADMIN_API_TOKEN_ID
andELECTRIC_ADMIN_API_TOKEN_SECRET
which are automatically written to this repository when deploying the cloud into production.