mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
Update missing docs redirects
This commit is contained in:
parent
1e9e29d0bf
commit
5835db6b54
@ -207,7 +207,7 @@ When users need personalized support, have complex issues, or ask for help beyon
|
||||
- Provide practical, working examples
|
||||
- Focus on giving complete, helpful answers
|
||||
- **When referencing documentation, use links with the base URL: https://docs.hexclave.com**
|
||||
- Example: For setup docs, use https://docs.hexclave.com/docs/getting-started/setup
|
||||
- Example: For setup docs, use https://docs.hexclave.com/guides/getting-started/setup
|
||||
|
||||
## CODE EXAMPLE GUIDELINES:
|
||||
- For API calls, show both the HTTP endpoint AND the SDK method
|
||||
|
||||
@ -109,7 +109,7 @@ export default function PageClient() {
|
||||
<br /><br />
|
||||
If you are looking to create or manage keys for your Hexclave project, head over to the <StyledLink href={`/projects/${project.id}/project-keys`}>Project Keys</StyledLink> settings.
|
||||
<br /><br />
|
||||
For more information, see the <StyledLink href="https://docs.hexclave.com/docs/apps/api-keys">API Keys docs</StyledLink>.
|
||||
For more information, see the <StyledLink href="https://docs.hexclave.com/guides/apps/api-keys/overview">API Keys docs</StyledLink>.
|
||||
</>}
|
||||
/>
|
||||
|
||||
|
||||
@ -2085,7 +2085,7 @@ export default function PageClient({ initialReplayId, lockedUserId }: PageClient
|
||||
<Typography className="mt-2 text-sm text-muted-foreground">
|
||||
Session replays let you watch how users interact with your app. For info on enabling replays,{" "}
|
||||
<StyledLink
|
||||
href="https://docs.hexclave.com/docs/apps/analytics"
|
||||
href="https://docs.hexclave.com/guides/apps/analytics/overview"
|
||||
target="_blank"
|
||||
>
|
||||
look here
|
||||
|
||||
@ -27,7 +27,7 @@ import { useAdminApp } from '../../use-admin-app';
|
||||
import { TeamAnalyticsSection } from './team-analytics';
|
||||
import { TeamPaymentsSection } from './team-payments';
|
||||
|
||||
const teamMetadataDocsUrl = "https://docs.hexclave.com/docs/concepts/teams";
|
||||
const teamMetadataDocsUrl = "https://docs.hexclave.com/guides/apps/teams/overview";
|
||||
|
||||
const inviteFormSchema = yupObject({
|
||||
email: strictEmailSchema("Please enter a valid email address").defined(),
|
||||
|
||||
@ -81,7 +81,7 @@ const SessionReplaysPageClient = dynamic(
|
||||
},
|
||||
);
|
||||
|
||||
const userMetadataDocsUrl = "https://docs.hexclave.com/docs/concepts/custom-user-data";
|
||||
const userMetadataDocsUrl = "https://docs.hexclave.com/guides/getting-started/user-fundamentals#custom-metadata";
|
||||
|
||||
export default function PageClient({ userId }: { userId: string }) {
|
||||
const stackAdminApp = useAdminApp();
|
||||
|
||||
@ -10,7 +10,7 @@ import { DateField, InputField, SwitchField, TextAreaField } from "./form-fields
|
||||
import { StyledLink } from "./link";
|
||||
import { validateRiskScore } from "@/lib/risk-score-utils";
|
||||
|
||||
const metadataDocsUrl = "https://docs.hexclave.com/docs/concepts/custom-user-data";
|
||||
const metadataDocsUrl = "https://docs.hexclave.com/guides/getting-started/user-fundamentals#custom-metadata";
|
||||
|
||||
export function UserDialog(props: {
|
||||
open?: boolean,
|
||||
|
||||
@ -62,7 +62,7 @@ describe("without project ID", () => {
|
||||
"error": deindent\`
|
||||
The x-hexclave-access-type header was 'client', but the x-hexclave-project-id header was not provided. (The legacy x-stack-access-type and x-stack-project-id headers are also accepted.)
|
||||
|
||||
For more information, see the docs on REST API authentication: https://docs.hexclave.com/rest-api/overview#authentication
|
||||
For more information, see the docs on REST API authentication: https://docs.hexclave.com/api/overview#authentication
|
||||
\`,
|
||||
},
|
||||
"headers": Headers {
|
||||
|
||||
@ -233,7 +233,7 @@ it("should fail to transfer project if the user is not signed in", async ({ expe
|
||||
"error": deindent\`
|
||||
You must specify an access level for this Hexclave project. Make sure project API keys are provided (eg. x-hexclave-publishable-client-key) and you set the x-hexclave-access-type header to 'client', 'server', or 'admin'. (The legacy x-stack-* equivalents are also accepted.)
|
||||
|
||||
For more information, see the docs on REST API authentication: https://docs.hexclave.com/rest-api/overview#authentication
|
||||
For more information, see the docs on REST API authentication: https://docs.hexclave.com/api/overview#authentication
|
||||
\`,
|
||||
},
|
||||
"headers": Headers {
|
||||
|
||||
@ -19,7 +19,7 @@ describe("without project access", () => {
|
||||
"error": deindent\`
|
||||
The x-hexclave-access-type header was 'client', but the x-hexclave-project-id header was not provided. (The legacy x-stack-access-type and x-stack-project-id headers are also accepted.)
|
||||
|
||||
For more information, see the docs on REST API authentication: https://docs.hexclave.com/rest-api/overview#authentication
|
||||
For more information, see the docs on REST API authentication: https://docs.hexclave.com/api/overview#authentication
|
||||
\`,
|
||||
},
|
||||
"headers": Headers {
|
||||
|
||||
@ -266,7 +266,7 @@ it("should fail to transfer project if the user is not signed in", async ({ expe
|
||||
"error": deindent\`
|
||||
You must specify an access level for this Hexclave project. Make sure project API keys are provided (eg. x-hexclave-publishable-client-key) and you set the x-hexclave-access-type header to 'client', 'server', or 'admin'. (The legacy x-stack-* equivalents are also accepted.)
|
||||
|
||||
For more information, see the docs on REST API authentication: https://docs.hexclave.com/rest-api/overview#authentication
|
||||
For more information, see the docs on REST API authentication: https://docs.hexclave.com/api/overview#authentication
|
||||
\`,
|
||||
},
|
||||
"headers": Headers {
|
||||
|
||||
@ -19,7 +19,7 @@ describe("without project access", () => {
|
||||
"error": deindent\`
|
||||
The x-hexclave-access-type header was 'client', but the x-hexclave-project-id header was not provided. (The legacy x-stack-access-type and x-stack-project-id headers are also accepted.)
|
||||
|
||||
For more information, see the docs on REST API authentication: https://docs.hexclave.com/rest-api/overview#authentication
|
||||
For more information, see the docs on REST API authentication: https://docs.hexclave.com/api/overview#authentication
|
||||
\`,
|
||||
},
|
||||
"headers": Headers {
|
||||
|
||||
@ -21,7 +21,7 @@ describe("GET /api/v1/internal/payments/method-configs", () => {
|
||||
"error": deindent\`
|
||||
The x-hexclave-access-type header was 'client', but the x-hexclave-project-id header was not provided. (The legacy x-stack-access-type and x-stack-project-id headers are also accepted.)
|
||||
|
||||
For more information, see the docs on REST API authentication: https://docs.hexclave.com/rest-api/overview#authentication
|
||||
For more information, see the docs on REST API authentication: https://docs.hexclave.com/api/overview#authentication
|
||||
\`,
|
||||
},
|
||||
"headers": Headers {
|
||||
|
||||
@ -23,7 +23,7 @@ describe("POST /api/v1/internal/payments/setup", () => {
|
||||
"error": deindent\`
|
||||
The x-hexclave-access-type header was 'client', but the x-hexclave-project-id header was not provided. (The legacy x-stack-access-type and x-stack-project-id headers are also accepted.)
|
||||
|
||||
For more information, see the docs on REST API authentication: https://docs.hexclave.com/rest-api/overview#authentication
|
||||
For more information, see the docs on REST API authentication: https://docs.hexclave.com/api/overview#authentication
|
||||
\`,
|
||||
},
|
||||
"headers": Headers {
|
||||
|
||||
@ -21,7 +21,7 @@ describe("GET /api/v1/internal/payments/stripe/account-info", () => {
|
||||
"error": deindent\`
|
||||
The x-hexclave-access-type header was 'client', but the x-hexclave-project-id header was not provided. (The legacy x-stack-access-type and x-stack-project-id headers are also accepted.)
|
||||
|
||||
For more information, see the docs on REST API authentication: https://docs.hexclave.com/rest-api/overview#authentication
|
||||
For more information, see the docs on REST API authentication: https://docs.hexclave.com/api/overview#authentication
|
||||
\`,
|
||||
},
|
||||
"headers": Headers {
|
||||
|
||||
@ -14,7 +14,7 @@ it("should not have have access to the project", async ({ expect }) => {
|
||||
"error": deindent\`
|
||||
The x-hexclave-access-type header was 'client', but the x-hexclave-project-id header was not provided. (The legacy x-stack-access-type and x-stack-project-id headers are also accepted.)
|
||||
|
||||
For more information, see the docs on REST API authentication: https://docs.hexclave.com/rest-api/overview#authentication
|
||||
For more information, see the docs on REST API authentication: https://docs.hexclave.com/api/overview#authentication
|
||||
\`,
|
||||
},
|
||||
"headers": Headers {
|
||||
|
||||
@ -20,7 +20,7 @@ describe("without project access", () => {
|
||||
"error": deindent\`
|
||||
The x-hexclave-access-type header was 'client', but the x-hexclave-project-id header was not provided. (The legacy x-stack-access-type and x-stack-project-id headers are also accepted.)
|
||||
|
||||
For more information, see the docs on REST API authentication: https://docs.hexclave.com/rest-api/overview#authentication
|
||||
For more information, see the docs on REST API authentication: https://docs.hexclave.com/api/overview#authentication
|
||||
\`,
|
||||
},
|
||||
"headers": Headers {
|
||||
|
||||
@ -25,7 +25,7 @@ describe("without authentication", () => {
|
||||
"error": deindent\`
|
||||
You must specify an access level for this Hexclave project. Make sure project API keys are provided (eg. x-hexclave-publishable-client-key) and you set the x-hexclave-access-type header to 'client', 'server', or 'admin'. (The legacy x-stack-* equivalents are also accepted.)
|
||||
|
||||
For more information, see the docs on REST API authentication: https://docs.hexclave.com/rest-api/overview#authentication
|
||||
For more information, see the docs on REST API authentication: https://docs.hexclave.com/api/overview#authentication
|
||||
\`,
|
||||
},
|
||||
"headers": Headers {
|
||||
|
||||
@ -1199,7 +1199,7 @@ it("listing owned products should require authentication", async ({ expect }) =>
|
||||
"error": deindent\`
|
||||
You must specify an access level for this Hexclave project. Make sure project API keys are provided (eg. x-hexclave-publishable-client-key) and you set the x-hexclave-access-type header to 'client', 'server', or 'admin'. (The legacy x-stack-* equivalents are also accepted.)
|
||||
|
||||
For more information, see the docs on REST API authentication: https://docs.hexclave.com/rest-api/overview#authentication
|
||||
For more information, see the docs on REST API authentication: https://docs.hexclave.com/api/overview#authentication
|
||||
\`,
|
||||
},
|
||||
"headers": Headers {
|
||||
|
||||
@ -20,7 +20,7 @@ it("should not have access to the project without project keys", async ({ expect
|
||||
"error": deindent\`
|
||||
The x-hexclave-access-type header was 'client', but the x-hexclave-project-id header was not provided. (The legacy x-stack-access-type and x-stack-project-id headers are also accepted.)
|
||||
|
||||
For more information, see the docs on REST API authentication: https://docs.hexclave.com/rest-api/overview#authentication
|
||||
For more information, see the docs on REST API authentication: https://docs.hexclave.com/api/overview#authentication
|
||||
\`,
|
||||
},
|
||||
"headers": Headers {
|
||||
@ -1440,7 +1440,7 @@ it("does not allow accessing a project without a project ID header", async ({ ex
|
||||
"error": deindent\`
|
||||
The x-hexclave-access-type header was 'admin', but the x-hexclave-project-id header was not provided. (The legacy x-stack-access-type and x-stack-project-id headers are also accepted.)
|
||||
|
||||
For more information, see the docs on REST API authentication: https://docs.hexclave.com/rest-api/overview#authentication
|
||||
For more information, see the docs on REST API authentication: https://docs.hexclave.com/api/overview#authentication
|
||||
\`,
|
||||
},
|
||||
"headers": Headers {
|
||||
|
||||
@ -24,7 +24,7 @@ describe("without project access", () => {
|
||||
"error": deindent\`
|
||||
You must specify an access level for this Hexclave project. Make sure project API keys are provided (eg. x-hexclave-publishable-client-key) and you set the x-hexclave-access-type header to 'client', 'server', or 'admin'. (The legacy x-stack-* equivalents are also accepted.)
|
||||
|
||||
For more information, see the docs on REST API authentication: https://docs.hexclave.com/rest-api/overview#authentication
|
||||
For more information, see the docs on REST API authentication: https://docs.hexclave.com/api/overview#authentication
|
||||
\`,
|
||||
},
|
||||
"headers": Headers {
|
||||
@ -46,7 +46,7 @@ describe("without project access", () => {
|
||||
"error": deindent\`
|
||||
You must specify an access level for this Hexclave project. Make sure project API keys are provided (eg. x-hexclave-publishable-client-key) and you set the x-hexclave-access-type header to 'client', 'server', or 'admin'. (The legacy x-stack-* equivalents are also accepted.)
|
||||
|
||||
For more information, see the docs on REST API authentication: https://docs.hexclave.com/rest-api/overview#authentication
|
||||
For more information, see the docs on REST API authentication: https://docs.hexclave.com/api/overview#authentication
|
||||
\`,
|
||||
},
|
||||
"headers": Headers {
|
||||
|
||||
@ -245,7 +245,7 @@ describe("Stack CLI", () => {
|
||||
it("exec help mentions docs URL", async ({ expect }) => {
|
||||
const { stdout, exitCode } = await runCli(["exec", "--help"]);
|
||||
expect(exitCode).toBe(0);
|
||||
expect(stdout).toContain("https://docs.hexclave.com/docs/sdk");
|
||||
expect(stdout).toContain("https://docs.hexclave.com/sdk/overview");
|
||||
});
|
||||
|
||||
it("exec help mentions --cloud-project-id and --config-file", async ({ expect }) => {
|
||||
|
||||
@ -244,63 +244,5 @@
|
||||
},
|
||||
"settings": {
|
||||
"customScripts": ["/apps-sidebar-filter.js", "/code-language-labels.js"]
|
||||
},
|
||||
"redirects": [
|
||||
{
|
||||
"source": "/rest-api/overview",
|
||||
"destination": "/api/overview"
|
||||
},
|
||||
{
|
||||
"source": "/getting-started/setup",
|
||||
"destination": "/guides/getting-started/setup"
|
||||
},
|
||||
{
|
||||
"source": "/docs/getting-started/setup",
|
||||
"destination": "/guides/getting-started/setup"
|
||||
},
|
||||
{
|
||||
"source": "/docs/next/getting-started/setup",
|
||||
"destination": "/guides/getting-started/setup"
|
||||
},
|
||||
{
|
||||
"source": "/docs/sdk",
|
||||
"destination": "/sdk/overview"
|
||||
},
|
||||
{
|
||||
"source": "/docs/apps/analytics",
|
||||
"destination": "/guides/apps/analytics/overview"
|
||||
},
|
||||
{
|
||||
"source": "/docs/apps/api-keys",
|
||||
"destination": "/guides/apps/api-keys/overview"
|
||||
},
|
||||
{
|
||||
"source": "/docs/others/convex",
|
||||
"destination": "/guides/integrations/convex/overview"
|
||||
},
|
||||
{
|
||||
"source": "/docs/concepts/teams",
|
||||
"destination": "/guides/apps/teams/overview"
|
||||
},
|
||||
{
|
||||
"source": "/docs/concepts/custom-user-data",
|
||||
"destination": "/guides/getting-started/user-fundamentals#custom-metadata"
|
||||
},
|
||||
{
|
||||
"source": "/guides/going-further/user-metadata",
|
||||
"destination": "/guides/getting-started/user-fundamentals#custom-metadata"
|
||||
},
|
||||
{
|
||||
"source": "/others/js-client",
|
||||
"destination": "/sdk/objects/stack-app"
|
||||
},
|
||||
{
|
||||
"source": "/guides/going-further/stack-app",
|
||||
"destination": "/sdk/objects/stack-app"
|
||||
},
|
||||
{
|
||||
"source": "/guides/going-further/backend-integration",
|
||||
"destination": "/guides/getting-started/setup"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@ -29,7 +29,7 @@ Below are some reminders on Hexclave and how to learn more about it.
|
||||
|
||||
The full docs sidebar — generated from the live navigation. Fetch any of these directly:
|
||||
|
||||
- [Index](https://docs.hexclave.com/index)
|
||||
- [Index](https://docs.hexclave.com)
|
||||
- **Getting Started**
|
||||
- [Setup](https://docs.hexclave.com/guides/getting-started/setup)
|
||||
- [User Fundamentals](https://docs.hexclave.com/guides/getting-started/user-fundamentals)
|
||||
|
||||
@ -98,7 +98,7 @@ It is usually obtained by calling `serverTeam.listUsers()` on a [`ServerTeam` ob
|
||||
// Inherits all functionality from TeamUser
|
||||
& TeamUser; //$stack-link-to:#teamuser
|
||||
// Inherits all functionality from ServerUser
|
||||
& ServerUser; //$stack-link-to:/docs/sdk/types/user#serveruser
|
||||
& ServerUser; //$stack-link-to:/sdk/types/user#serveruser
|
||||
& {
|
||||
teamProfile: ServerTeamMemberProfile; //$stack-link-to:#serverteamuserteamprofile
|
||||
};`}
|
||||
|
||||
@ -94,7 +94,7 @@ You can turn on **test mode** to simulate purchases without charging real money
|
||||
|
||||
## SDK Usage
|
||||
|
||||
The Payments functionality is available through the [`Customer`](/docs/sdk/types/customer) interface, which is automatically available on [`CurrentUser`](/docs/sdk/types/user#currentuser) and [`Team`](/docs/sdk/types/team#team) objects.
|
||||
The Payments functionality is available through the [`Customer`](/sdk/types/customer) interface, which is automatically available on [`CurrentUser`](/sdk/types/user#currentuser) and [`Team`](/sdk/types/team#team) objects.
|
||||
|
||||
### Creating Checkout URLs
|
||||
|
||||
@ -114,7 +114,7 @@ For team purchases:
|
||||
|
||||
### Managing Items
|
||||
|
||||
Items represent quantifiable resources like credits, API calls, or storage quotas. See the [`Item`](/docs/sdk/types/item) type reference for full details.
|
||||
Items represent quantifiable resources like credits, API calls, or storage quotas. See the [`Item`](/sdk/types/item) type reference for full details.
|
||||
|
||||
#### Getting Item Quantities
|
||||
|
||||
@ -260,9 +260,9 @@ See [Stripe's testing documentation](https://stripe.com/docs/testing) for more t
|
||||
|
||||
For complete API documentation, see:
|
||||
|
||||
- [`Customer`](/docs/sdk/types/customer) - Payment methods available on users and teams
|
||||
- [`Item`](/docs/sdk/types/item) - Item and ServerItem type definitions
|
||||
- [`ServerItem`](/docs/sdk/types/item#serveritem) - Server-side item management methods
|
||||
- [`Customer`](/sdk/types/customer) - Payment methods available on users and teams
|
||||
- [`Item`](/sdk/types/item) - Item and ServerItem type definitions
|
||||
- [`ServerItem`](/sdk/types/item#serveritem) - Server-side item management methods
|
||||
|
||||
## Best Practices
|
||||
|
||||
|
||||
@ -172,7 +172,7 @@ Use the JWT viewer above to inspect tokens and verify their contents. Pay specia
|
||||
|
||||
## Related Concepts
|
||||
|
||||
- [API Keys](/docs/apps/api-keys) - Alternative authentication method for server-to-server communication
|
||||
- [Backend Integration](/docs/concepts/backend-integration) - How to verify JWTs in your backend
|
||||
- [API Keys](/guides/apps/api-keys/overview) - Alternative authentication method for server-to-server communication
|
||||
- [Setup](/guides/getting-started/setup) - How to verify user sessions in your backend
|
||||
- [Permissions](/docs/apps/permissions) - Understanding user permissions (not included in JWTs)
|
||||
- [Teams](/docs/apps/orgs-and-teams) - Understanding team context in JWTs
|
||||
|
||||
@ -115,6 +115,6 @@ To see how to use these headers in various programming languages, see the [examp
|
||||
|
||||
## Need Help?
|
||||
|
||||
- Check out our [Getting Started Guide](/docs/next/getting-started/setup) for initial setup
|
||||
- Check out our [Getting Started Guide](/guides/getting-started/setup) for initial setup
|
||||
- Visit our [Concepts](/docs/next/concepts) section to understand Stack Auth fundamentals
|
||||
- Join our [Discord community](https://discord.stack-auth.com/) for support and discussions
|
||||
|
||||
@ -96,5 +96,5 @@ To see how to use these headers in various programming languages, see the [examp
|
||||
|
||||
## Need Help?
|
||||
|
||||
- Check out our [Getting Started Guide](/docs/getting-started/setup) for initial setup
|
||||
- Check out our [Getting Started Guide](/guides/getting-started/setup) for initial setup
|
||||
- Join our [Discord community](https://discord.stack-auth.com/) for support and discussions
|
||||
|
||||
@ -41,4 +41,4 @@ Initialize Hexclave in a JavaScript project with npm:
|
||||
npx init-stack --js --npm
|
||||
```
|
||||
|
||||
For more information, please visit [Hexclave Documentation](https://docs.hexclave.com/getting-started/setup).
|
||||
For more information, please visit [Hexclave Documentation](https://docs.hexclave.com/guides/getting-started/setup).
|
||||
|
||||
@ -99,7 +99,7 @@ program
|
||||
.option("--on-question <mode>", "How to handle interactive questions: ask | guess | error | default", "default")
|
||||
.option("--no-warn-uncommitted-changes", "Don't warn about uncommitted changes in the Git repository")
|
||||
.addHelpText('after', `
|
||||
For more information, please visit https://docs.hexclave.com/getting-started/setup`);
|
||||
For more information, please visit https://docs.hexclave.com/guides/getting-started/setup`);
|
||||
|
||||
program.parse();
|
||||
|
||||
@ -446,7 +446,7 @@ ${colorize.bold`Next steps:`}
|
||||
3. Import the Stack components in your app
|
||||
4. Add authentication to your app
|
||||
|
||||
For more information, please visit https://docs.hexclave.com/getting-started/setup
|
||||
For more information, please visit https://docs.hexclave.com/guides/getting-started/setup
|
||||
`.trim());
|
||||
if (!noBrowser) {
|
||||
// Hexclave rebrand: emit the new query param name (hyphen delimiter preserved).
|
||||
@ -479,7 +479,7 @@ main().catch(async (err) => {
|
||||
console.log(colorize.red`===============================================`);
|
||||
console.error();
|
||||
console.error(
|
||||
"If you need assistance, please try installing Stack manually as described in https://docs.hexclave.com/getting-started/setup or join our Discord where we're happy to help: https://discord.hexclave.com"
|
||||
"If you need assistance, please try installing Stack manually as described in https://docs.hexclave.com/guides/getting-started/setup or join our Discord where we're happy to help: https://discord.hexclave.com"
|
||||
);
|
||||
if (!(err instanceof UserError)) {
|
||||
console.error("");
|
||||
|
||||
@ -53,7 +53,7 @@ export function registerExecCommand(program: Command) {
|
||||
.description("Execute JavaScript with a pre-configured StackServerApp as `stackServerApp`. Pass --cloud-project-id <id> for the cloud API, or --config-file <path> for the development environment.")
|
||||
.option("--cloud-project-id <id>", "Cloud project ID to run against (use --config-file instead for the development environment)")
|
||||
.option("--config-file <path>", "Path to a development-environment stack.config.ts (use --cloud-project-id instead for the cloud API)")
|
||||
.addHelpText("after", "\nFor available API methods, see: https://docs.hexclave.com/docs/sdk")
|
||||
.addHelpText("after", "\nFor available API methods, see: https://docs.hexclave.com/sdk/overview")
|
||||
.action(async (javascript: string | undefined, opts: ExecTargetOpts) => {
|
||||
if (javascript === undefined) {
|
||||
throw new CliError("Missing JavaScript argument. Use `stack exec \"<javascript>\"` or `stack exec --help`.");
|
||||
|
||||
@ -26,6 +26,9 @@ function humanize(slug: string): string {
|
||||
}
|
||||
|
||||
function docUrl(slug: string): string {
|
||||
if (slug === "index") {
|
||||
return DOCS_BASE;
|
||||
}
|
||||
const encoded = slug.split("/").map(encodeURIComponent).join("/");
|
||||
return `${DOCS_BASE}/${encoded}`;
|
||||
}
|
||||
|
||||
@ -254,65 +254,7 @@ const docsJson = {
|
||||
"/apps-sidebar-filter.js",
|
||||
"/code-language-labels.js"
|
||||
]
|
||||
},
|
||||
"redirects": [
|
||||
{
|
||||
"source": "/rest-api/overview",
|
||||
"destination": "/api/overview"
|
||||
},
|
||||
{
|
||||
"source": "/getting-started/setup",
|
||||
"destination": "/guides/getting-started/setup"
|
||||
},
|
||||
{
|
||||
"source": "/docs/getting-started/setup",
|
||||
"destination": "/guides/getting-started/setup"
|
||||
},
|
||||
{
|
||||
"source": "/docs/next/getting-started/setup",
|
||||
"destination": "/guides/getting-started/setup"
|
||||
},
|
||||
{
|
||||
"source": "/docs/sdk",
|
||||
"destination": "/sdk/overview"
|
||||
},
|
||||
{
|
||||
"source": "/docs/apps/analytics",
|
||||
"destination": "/guides/apps/analytics/overview"
|
||||
},
|
||||
{
|
||||
"source": "/docs/apps/api-keys",
|
||||
"destination": "/guides/apps/api-keys/overview"
|
||||
},
|
||||
{
|
||||
"source": "/docs/others/convex",
|
||||
"destination": "/guides/integrations/convex/overview"
|
||||
},
|
||||
{
|
||||
"source": "/docs/concepts/teams",
|
||||
"destination": "/guides/apps/teams/overview"
|
||||
},
|
||||
{
|
||||
"source": "/docs/concepts/custom-user-data",
|
||||
"destination": "/guides/getting-started/user-fundamentals#custom-metadata"
|
||||
},
|
||||
{
|
||||
"source": "/guides/going-further/user-metadata",
|
||||
"destination": "/guides/getting-started/user-fundamentals#custom-metadata"
|
||||
},
|
||||
{
|
||||
"source": "/others/js-client",
|
||||
"destination": "/sdk/objects/stack-app"
|
||||
},
|
||||
{
|
||||
"source": "/guides/going-further/stack-app",
|
||||
"destination": "/sdk/objects/stack-app"
|
||||
},
|
||||
{
|
||||
"source": "/guides/going-further/backend-integration",
|
||||
"destination": "/guides/getting-started/setup"
|
||||
}
|
||||
]
|
||||
}
|
||||
} as const;
|
||||
|
||||
export default docsJson;
|
||||
|
||||
@ -270,7 +270,7 @@ const AccessTypeWithoutProjectId = createKnownErrorConstructor(
|
||||
deindent`
|
||||
The x-hexclave-access-type header was '${accessType}', but the x-hexclave-project-id header was not provided. (The legacy x-stack-access-type and x-stack-project-id headers are also accepted.)
|
||||
|
||||
For more information, see the docs on REST API authentication: https://docs.hexclave.com/rest-api/overview#authentication
|
||||
For more information, see the docs on REST API authentication: https://docs.hexclave.com/api/overview#authentication
|
||||
`,
|
||||
{
|
||||
request_type: accessType,
|
||||
@ -287,7 +287,7 @@ const AccessTypeRequired = createKnownErrorConstructor(
|
||||
deindent`
|
||||
You must specify an access level for this Hexclave project. Make sure project API keys are provided (eg. x-hexclave-publishable-client-key) and you set the x-hexclave-access-type header to 'client', 'server', or 'admin'. (The legacy x-stack-* equivalents are also accepted.)
|
||||
|
||||
For more information, see the docs on REST API authentication: https://docs.hexclave.com/rest-api/overview#authentication
|
||||
For more information, see the docs on REST API authentication: https://docs.hexclave.com/api/overview#authentication
|
||||
`,
|
||||
] as const,
|
||||
() => [] as const,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user