Open-next Cloudflare / Docker / Setup (#248)
* Add Cloudflare generator with Wrangler and OpenNext support This update introduces a new Cloudflare generator to streamline configuration and deployment via Wrangler and OpenNext. It registers the necessary templates, modifies project files, and adds Cloudflare-specific scripts and dependencies to the package.json. Additionally, .hbs files are updated in .prettierignore for formatting consistency. * Add GitHub username prompt and improve setup scripts Introduce a prompt for GitHub username to personalize project setup. Enhance the setup scripts by adding PNPM verification, configuring `upstream` remote, and removing the `origin` remote. Adjust health check and error handling for better reliability. * Add Dockerfile generator to turbo generators Introduced a new generator to create Dockerfile configurations for standalone Next.js applications. This includes modifying `next.config.mjs` for standalone output, updating dependencies in `package.json`, and adding a Dockerfile template. The generator is now registered in the turbo setup. * Add console-based logger implementation. This is required for edge environments such as Cloudflare. * Remove deprecated Supabase client utilities The `server-actions-client`, `route-handler-client`, and `server-component-client` utilities have been removed in favor of `getSupabaseServerClient`. This simplifies and consolidates the API, ensuring consistency across server-side usage. Version bumped to 2.9.0 to reflect breaking changes.
This commit is contained in:
committed by
GitHub
parent
76bfeddd32
commit
4cfb4f936f
@@ -5,6 +5,7 @@
|
||||
"scripts": {
|
||||
"dev": "node ./src/dev.mjs",
|
||||
"checks": "node ./src/checks.mjs",
|
||||
"requirements": "node ./src/requirements.mjs"
|
||||
"requirements": "node ./src/requirements.mjs",
|
||||
"license": "node ./src/license.mjs"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
import { execSync } from 'child_process';
|
||||
|
||||
|
||||
|
||||
|
||||
import { readFileSync } from 'fs';
|
||||
import path from 'path';
|
||||
|
||||
const endpoint = 'https://makerkit.dev/api/license/check';
|
||||
|
||||
@@ -47,6 +45,21 @@ async function checkLicense() {
|
||||
searchParams.append('email', gitEmail);
|
||||
}
|
||||
|
||||
try {
|
||||
const makerkitConfig =
|
||||
JSON.parse(
|
||||
readFileSync(path.resolve(process.cwd(), '../../.makerkitrc'), 'utf-8'),
|
||||
) || {};
|
||||
|
||||
if (makerkitConfig.projectName) {
|
||||
searchParams.append('projectName', makerkitConfig.projectName);
|
||||
}
|
||||
|
||||
if (makerkitConfig.username) {
|
||||
searchParams.append('projectUsername', makerkitConfig.username);
|
||||
}
|
||||
} catch {}
|
||||
|
||||
const res = await fetch(`${endpoint}?${searchParams.toString()}`);
|
||||
|
||||
if (res.status === 200) {
|
||||
|
||||
Reference in New Issue
Block a user