-
-
Notifications
You must be signed in to change notification settings - Fork 76
Enhance Vercel Runtime Support #340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
commit: |
This is still a work in progress. I need to verify that everything works as expected 😅 |
- Updated RuntimeSchema to include "vercel-edge" and "vercel-nodejs". - Added validation checks for Vercel runtimes requiring Hono backend in processAndValidateFlags. - Implemented setup functions for Vercel Edge and Node.js runtimes. - Updated project generation templates to support Vercel runtimes. - Adjusted database connection handling to use environment variables consistently. - Enhanced stack compatibility analysis to enforce Hono backend for Vercel runtimes. This commit improves the integration and validation of Vercel runtimes within the CLI.
6635177
to
1fecf38
Compare
- Updated imports for environment variables in Hono backend templates to use "@/env" for Node.js and Vercel runtimes. - Added conditional imports for Cloudflare Workers to ensure proper environment handling across different runtimes. - Adjusted database configuration to consistently utilize the updated environment variable imports. This commit enhances the flexibility and maintainability of the codebase by standardizing environment variable access.
- Introduced a new template for environment variable validation using Zod in the backend. - Implemented a schema to validate essential environment variables, including CORS_ORIGIN and DATABASE_URL. - Added conditional support for DATABASE_AUTH_TOKEN based on the dbSetup variable. - Included error handling to log invalid environment configurations and exit the process. This commit enhances the robustness of environment variable management in the application.
- Created a new Handlebars template for environment variable validation using Zod. - Defined a schema to validate CORS_ORIGIN and DATABASE_URL, with optional DATABASE_AUTH_TOKEN based on dbSetup. - Implemented error handling to log and exit on invalid environment configurations. This commit strengthens environment variable management in the backend.
- Updated imports for environment variables in Handlebars templates across Node, Express, and Fastify backends to use "@/env" for improved path resolution. - This change standardizes the import method, enhancing maintainability and consistency across different server implementations. This commit continues to strengthen the environment variable management in the backend.
This commit improves the integration and validation of Vercel runtimes within the CLI.