-
Notifications
You must be signed in to change notification settings - Fork 10k
AutoTitle Update change-super-admin.mdx #22959
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
Conversation
Fork for proposed difference to insured protection
|
Howdy and thanks for contributing to our repo. The Cloudflare team reviews new, external PRs within two (2) weeks. If it's been two weeks or longer without any movement, please tag the PR Assignees in a comment. We review internal PRs within 1 week. If it's something urgent or has been sitting without a comment, start a thread in the Developer Docs space internally. PR Change SummaryUpdated the documentation for the Change Super Administrator feature to include a new database connection example using Hyperdrive.
Modified Files
How can I customize these reviews?Check out the Hyperlint AI Reviewer docs for more information on how to customize the review. If you just want to ignore it on this PR, you can add the Note specifically for link checks, we only check the first 30 links in a file and we cache the results for several hours (for instance, if you just added a page, you might experience this). Our recommendation is to add |
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.
💡 To request another review, post a new comment with "/windsurf-review".
| import postgres from 'postgres'; | ||
|
|
||
| export default { | ||
| async fetch(request, env, ctx): Promise<Response> { | ||
| // Hyperdrive provides a unique generated connection string to connect to | ||
| // your database via Hyperdrive that can be used with your existing tools | ||
| const sql = postgres(env.HYPERDRIVE.connectionString); | ||
|
|
||
| try { | ||
| // Sample SQL query | ||
| const results = await sql`SELECT * FROM pg_tables`; | ||
|
|
||
| // Close the client after the response is returned | ||
| ctx.waitUntil(sql.end()); | ||
|
|
||
| return Response.json(results); | ||
| } catch (e) { | ||
| return Response.json({ error: e instanceof Error ? e.message : e }, { status: 500 }); | ||
| } | ||
| }, | ||
|
|
||
| } satisfies ExportedHandler<{ HYPERDRIVE: Hyperdrive }>;--- |
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.
This PR appears to be adding code for a Hyperdrive database connection to a documentation file about changing Super Administrators. This code doesn't seem to belong in this documentation file and would break the MDX formatting. The file should only contain documentation content related to changing Super Administrators in Cloudflare accounts.
|
|
500 |
Fork for proposed difference to insured protection
Summary
Screenshots (optional)
Documentation checklist