mirror of
https://github.com/stack-auth/stack.git
synced 2026-07-20 21:29:36 +08:00
prompt fix
This commit is contained in:
@@ -167,14 +167,15 @@ export const stackClientApp = new StackClientApp({
|
||||
language: 'JavaScript',
|
||||
framework: 'React',
|
||||
code: `import { StackClientApp } from "@stackframe/react";
|
||||
// If you use React Router, uncomment the next line and the redirectMethod below
|
||||
// import { useNavigate } from "react-router-dom";
|
||||
// If you use a router, uncomment the appropriate import and the redirectMethod below
|
||||
// import { useNavigate } from "react-router-dom"; // React Router
|
||||
// import { useNavigate } from "@tanstack/react-router"; // TanStack Router
|
||||
|
||||
export const stackClientApp = new StackClientApp({
|
||||
projectId: process.env.VITE_STACK_PROJECT_ID || "your-project-id",
|
||||
publishableClientKey: process.env.VITE_STACK_PUBLISHABLE_CLIENT_KEY || "your-publishable-client-key",
|
||||
tokenStore: "cookie",
|
||||
// redirectMethod: { useNavigate }, // Optional: only if using react-router-dom
|
||||
// redirectMethod: { useNavigate }, // Set this for non-Next.js frameworks
|
||||
});`,
|
||||
highlightLanguage: 'typescript',
|
||||
filename: 'stack/client.ts'
|
||||
|
||||
Reference in New Issue
Block a user