mirror of
https://github.com/OpenCut-app/OpenCut.git
synced 2026-07-13 21:52:53 +02:00
chore: init cloudflare
This commit is contained in:
@@ -18,3 +18,5 @@ bun.lockb
|
|||||||
|
|
||||||
# Twiggy
|
# Twiggy
|
||||||
.cursor/
|
.cursor/
|
||||||
|
|
||||||
|
.open-next
|
||||||
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
/// <reference types="next" />
|
/// <reference types="next" />
|
||||||
/// <reference types="next/image-types/global" />
|
/// <reference types="next/image-types/global" />
|
||||||
import "./.next/dev/types/routes.d.ts";
|
import "./.next/types/routes.d.ts";
|
||||||
|
|
||||||
// NOTE: This file should not be edited
|
// NOTE: This file should not be edited
|
||||||
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
|
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
import type { NextConfig } from "next";
|
import type { NextConfig } from "next";
|
||||||
import { withBotId } from "botid/next/config";
|
import { withBotId } from "botid/next/config";
|
||||||
import { withContentCollections } from "@content-collections/next";
|
import { withContentCollections } from "@content-collections/next";
|
||||||
|
import { initOpenNextCloudflareForDev } from "@opennextjs/cloudflare";
|
||||||
|
|
||||||
|
initOpenNextCloudflareForDev();
|
||||||
|
|
||||||
const nextConfig: NextConfig = {
|
const nextConfig: NextConfig = {
|
||||||
turbopack: {
|
turbopack: {
|
||||||
|
|||||||
@@ -7,6 +7,8 @@
|
|||||||
"dev": "next dev --turbopack",
|
"dev": "next dev --turbopack",
|
||||||
"build": "next build",
|
"build": "next build",
|
||||||
"start": "next start",
|
"start": "next start",
|
||||||
|
"preview": "opennextjs-cloudflare build && opennextjs-cloudflare preview",
|
||||||
|
"deploy": "opennextjs-cloudflare build && opennextjs-cloudflare deploy",
|
||||||
"lint": "biome check src/",
|
"lint": "biome check src/",
|
||||||
"lint:fix": "biome check src/ --write",
|
"lint:fix": "biome check src/ --write",
|
||||||
"format": "biome format src/ --write",
|
"format": "biome format src/ --write",
|
||||||
@@ -22,6 +24,7 @@
|
|||||||
"@huggingface/transformers": "^3.8.1",
|
"@huggingface/transformers": "^3.8.1",
|
||||||
"@opencut/env": "workspace:*",
|
"@opencut/env": "workspace:*",
|
||||||
"@opencut/ui": "workspace:*",
|
"@opencut/ui": "workspace:*",
|
||||||
|
"@opennextjs/cloudflare": "^1.17.3",
|
||||||
"@radix-ui/react-accordion": "^1.2.12",
|
"@radix-ui/react-accordion": "^1.2.12",
|
||||||
"@radix-ui/react-checkbox": "^1.3.3",
|
"@radix-ui/react-checkbox": "^1.3.3",
|
||||||
"@radix-ui/react-dialog": "^1.1.15",
|
"@radix-ui/react-dialog": "^1.1.15",
|
||||||
@@ -35,7 +38,6 @@
|
|||||||
"@upstash/ratelimit": "^2.0.6",
|
"@upstash/ratelimit": "^2.0.6",
|
||||||
"@upstash/redis": "^1.35.4",
|
"@upstash/redis": "^1.35.4",
|
||||||
"better-auth": "^1.2.7",
|
"better-auth": "^1.2.7",
|
||||||
"botid": "^1.4.2",
|
|
||||||
"class-variance-authority": "^0.7.1",
|
"class-variance-authority": "^0.7.1",
|
||||||
"clsx": "^2.1.1",
|
"clsx": "^2.1.1",
|
||||||
"cmdk": "^1.0.0",
|
"cmdk": "^1.0.0",
|
||||||
@@ -48,6 +50,7 @@
|
|||||||
"lucide-react": "^0.562.0",
|
"lucide-react": "^0.562.0",
|
||||||
"mediabunny": "^1.29.1",
|
"mediabunny": "^1.29.1",
|
||||||
"motion": "^12.18.1",
|
"motion": "^12.18.1",
|
||||||
|
"botid": "^1.4.2",
|
||||||
"nanoid": "^5.1.5",
|
"nanoid": "^5.1.5",
|
||||||
"next": "16.1.3",
|
"next": "16.1.3",
|
||||||
"next-themes": "^0.4.4",
|
"next-themes": "^0.4.4",
|
||||||
@@ -95,6 +98,7 @@
|
|||||||
"raw-loader": "^4.0.2",
|
"raw-loader": "^4.0.2",
|
||||||
"sharp": "^0.34.5",
|
"sharp": "^0.34.5",
|
||||||
"tailwindcss": "^4.2.1",
|
"tailwindcss": "^4.2.1",
|
||||||
"typescript": "^5.8.3"
|
"typescript": "^5.8.3",
|
||||||
|
"wrangler": "^4.77.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,2 @@
|
|||||||
|
/_next/static/*
|
||||||
|
Cache-Control: public,max-age=31536000,immutable
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
"$schema": "node_modules/wrangler/config-schema.json",
|
||||||
|
"name": "opencut",
|
||||||
|
"main": ".open-next/worker.js",
|
||||||
|
"compatibility_date": "2025-04-01",
|
||||||
|
"compatibility_flags": ["nodejs_compat", "global_fetch_strictly_public"],
|
||||||
|
"assets": {
|
||||||
|
"directory": ".open-next/assets",
|
||||||
|
"binding": "ASSETS"
|
||||||
|
},
|
||||||
|
"services": [
|
||||||
|
{
|
||||||
|
"binding": "WORKER_SELF_REFERENCE",
|
||||||
|
"service": "opencut"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -9,6 +9,8 @@
|
|||||||
"dev:web": "turbo run dev --filter=@opencut/web",
|
"dev:web": "turbo run dev --filter=@opencut/web",
|
||||||
"build:web": "turbo run build --filter=@opencut/web",
|
"build:web": "turbo run build --filter=@opencut/web",
|
||||||
"dev:tools": "turbo run dev --filter=@opencut/tools",
|
"dev:tools": "turbo run dev --filter=@opencut/tools",
|
||||||
|
"preview:web": "turbo run preview --filter=@opencut/web",
|
||||||
|
"deploy:web": "turbo run deploy --filter=@opencut/web",
|
||||||
"build:tools": "turbo run build --filter=@opencut/tools",
|
"build:tools": "turbo run build --filter=@opencut/tools",
|
||||||
"start:tools": "turbo run start --filter=@opencut/tools",
|
"start:tools": "turbo run start --filter=@opencut/tools",
|
||||||
"lint:web": "biome lint apps/web/src --max-diagnostics=1000",
|
"lint:web": "biome lint apps/web/src --max-diagnostics=1000",
|
||||||
|
|||||||
@@ -29,6 +29,13 @@
|
|||||||
"persistent": true,
|
"persistent": true,
|
||||||
"cache": false
|
"cache": false
|
||||||
},
|
},
|
||||||
|
"preview": {
|
||||||
|
"persistent": true,
|
||||||
|
"cache": false
|
||||||
|
},
|
||||||
|
"deploy": {
|
||||||
|
"cache": false
|
||||||
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"dependsOn": ["^lint"],
|
"dependsOn": ["^lint"],
|
||||||
"cache": false
|
"cache": false
|
||||||
|
|||||||
@@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"name": "opencut",
|
||||||
|
"main": ".open-next/worker.js",
|
||||||
|
"compatibility_date": "2025-04-01",
|
||||||
|
"compatibility_flags": ["nodejs_compat", "global_fetch_strictly_public"],
|
||||||
|
"assets": {
|
||||||
|
"directory": ".open-next/assets",
|
||||||
|
"binding": "ASSETS",
|
||||||
|
},
|
||||||
|
"services": [
|
||||||
|
{
|
||||||
|
"binding": "WORKER_SELF_REFERENCE",
|
||||||
|
"service": "opencut",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user