Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
# Public app configuration
NEXT_PUBLIC_APP_URL=http://localhost:3000
# Optional comma-separated hostnames for proxied Next.js dev server origins.
NEXT_ALLOWED_DEV_ORIGINS=

# Server-only configuration
DATABASE_URL=
SESSION_SECRET=
# Base64-encoded 32-byte key. Multiple keys require stable key-id:base64-key entries.
ENCRYPTION_KEY=
OPENAI_API_KEY=
# Optional; defaults to gpt-4.1-mini.
OPENAI_REPORT_ASSISTANT_MODEL=

# Onchain configuration
GNOSIS_RPC_URL=
Expand Down
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,27 @@ pnpm dev

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

For a local HTTPS proxy or remote development tunnel, set the public app URL
and allowed dev origins in your ignored local environment file:

```env
NEXT_PUBLIC_APP_URL=https://your-dev-origin.example
NEXT_ALLOWED_DEV_ORIGINS=your-dev-origin.example
```

Then run the proxy-friendly dev server:

```bash
pnpm dev:proxy
```

Point your local proxy at [http://127.0.0.1:3001](http://127.0.0.1:3001).
Keep machine-specific proxy hostnames and URLs out of committed source.

Comment thread
coderabbitai[bot] marked this conversation as resolved.
## Scripts

- `pnpm dev`: start the local Next.js dev server.
- `pnpm dev:proxy`: start the local Next.js dev server on `127.0.0.1:3001` for a local HTTPS proxy or remote development tunnel.
- `pnpm build`: create a production build.
- `pnpm start`: run the production build.
- `pnpm lint`: run ESLint.
Expand Down
9 changes: 9 additions & 0 deletions drizzle/0018_workable_miss_america.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
CREATE TABLE "report_assistant_rate_limits" (
"key" text PRIMARY KEY NOT NULL,
"count" integer DEFAULT 0 NOT NULL,
"reset_at" timestamp with time zone NOT NULL,
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
"updated_at" timestamp with time zone DEFAULT now() NOT NULL
);
--> statement-breakpoint
CREATE INDEX "report_assistant_rate_limits_reset_at_idx" ON "report_assistant_rate_limits" USING btree ("reset_at");
Loading
Loading