pushed
lws803/GigaChadGPT • 9:07 PM - Mar 10, 2023
This change sets src/pages/api/chat.ts to run on Next.js Edge instead of the default Node runtime, which is a meaningful deployment/runtime shift for the app’s chat endpoint. The route still validates the Firebase auth token, builds the persona-specific prompt, and calls createChatCompletion, but it will now execute closer to users and may respond faster depending on the host setup. There’s also a response log added for debugging, though the main impact is the runtime move. In practice, chat requests should feel snappier if the surrounding dependencies remain Edge-compatible.
