The below instructions will guide you through setting up your RedwoodJS application and deploying it seamlessly on Vercel. Follow along to get your project up and running.
Last updated
Was this helpful?
1
Install using your favourite package manager
npm i @appear.sh/introspector // or
yarn add @appear.sh/introspector // or
pnpm add @appear.sh/introspector
2
Create instantiation file for Appear
Create a file where you can instantiate Appear, for example: api/src/withAppear.ts
/// withAppear.ts
import { createVercelMiddleware } from "@appear.sh/introspector/integrations/redwoodjs"
export const withAppear = createVercelMiddleware({
// api key you can obtain at https://app.appear.sh/settings
apiKey: "your-api-key",
// any identifier of environment you prefer, we recommend separating production/staging/development. The more granular the better
environment: process.env.NODE_ENV ?? "development",
// other config as you desire
// ...
})
3
Wrap your Serverless Functions
Wrap your Serverless Functions (API Endpoints) in withAppear
The introspector will begin reporting the structure of your API services when they're interacted with. Log into with your credentials to view the services that appear. You may need to refresh the page periodically.
If you have any queries or require support with the above instructions, please with us.