data-peek/apps/web/next.config.ts
Rohith Gilla 5cc4a55515
feat: web updates with pro license, customer portal, and safety improvements (#24)
* fix: prevent duplicate autocomplete suggestions in SQL editor

Use singleton pattern for Monaco completion provider to prevent
duplicates when multiple editor tabs are open. Also disable
word-based suggestions since the custom provider is comprehensive.


* feat(ai): prevent auto-execution of destructive SQL queries

Add safety guardrails to ensure UPDATE, DELETE, DROP, and TRUNCATE
queries are never auto-executed from the AI chat. Users must manually
review and execute these queries in a new tab.

- Add requiresConfirmation field to AI query response schema
- Update system prompt to require confirmation for destructive queries
- Hide "Run Query" button when requiresConfirmation is true
- Show "Review in Tab" button with warning styling instead


* feat: handle pro license

* feat: add customer portal

* feat: fix a few things

* chore: add simeple umami self hosted analytics

* fix: add globalEnv to turbo.json for Vercel builds

Declares environment variables required by the web app so Turborepo
passes them through during Vercel builds.

* refactor: use next/script for analytics with afterInteractive strategy

Replaces raw script tag with Next.js Script component for better
loading optimization, de-duplication, and automatic placement.
2025-12-03 16:44:38 +05:30

7 lines
133 B
TypeScript

import type { NextConfig } from "next";
const nextConfig: NextConfig = {
/* config options here */
};
export default nextConfig;