:rocket: This description was created by Ellipsis for commit 12d8c921f5ca2cc4634307c4c58cb38dc635f705
Summary:
This PR sets up GitHub Actions workflows to deploy the Next.js app using Railway, with comprehensive modifications to runtime configurations, scripts, database schema, and environment settings, ensuring compatibility across different environments.
Enables deployment of the Next.js app using Railway.
Introduces GitHub Actions workflows for deploying Next.js app using Railway, defined in /.github/workflows/deploy-nextjs-app-pr.yaml and /.github/workflows/deploy-nextjs-app-prod.yaml.
Modifies runtime configuration in /apps/next/app/api/[[...route]]/route.ts, /apps/next/drizzle.config.ts, and /apps/next/package.json.
Simplifies POST function in /apps/next/app/api/admin/cluster/route.ts.
Disables telemetry in build and start scripts in /apps/next/package.json.
Adds new dependency sharp in package.json for image processing.
Modifies database schema configuration in /apps/next/app/server/db/schemaForEnv.ts for CI environment and for environment-specific database schemas.
Adjusted deployment scripts to use Railway CLI in GitHub Actions workflows.
Ensured compatibility with different environments by modifying database and environment configurations.
Saves PostgreSQL CA data in ./pg_ca.crt for secure DB connection.
Triggered by pushes and PRs to main branch, when labeled or edited.
Runs on ubuntu-latest with Node.js 20 and Bun.
Includes steps for code checkout, package installation, database changes, and deployment.
Uses Railway CLI for deployment, installed during the run.
Configures environment variables for Node.js, Railway, and database settings.
Resolves MET-11.
This PR enables deployment of the Nextjs app. Credits to:
Summary:
This PR sets up GitHub Actions workflows to deploy the Next.js app using Railway, with comprehensive modifications to runtime configurations, scripts, database schema, and environment settings, ensuring compatibility across different environments.
Key points:
/.github/workflows/deploy-nextjs-app-pr.yaml
and/.github/workflows/deploy-nextjs-app-prod.yaml
./apps/next/app/api/[[...route]]/route.ts
,/apps/next/drizzle.config.ts
, and/apps/next/package.json
./apps/next/app/api/admin/cluster/route.ts
./apps/next/package.json
.sharp
inpackage.json
for image processing./apps/next/app/server/db/schemaForEnv.ts
for CI environment and for environment-specific database schemas../pg_ca.crt
for secure DB connection.main
branch, when labeled or edited.ubuntu-latest
with Node.js 20 and Bun.Generated with :heart: by ellipsis.dev