mirror of
https://github.com/abusoww/tuxmate.git
synced 2026-09-29 08:06:01 +00:00
fix: build config for dual Docker/Cloudflare support
- next.config.ts: Auto-detects Cloudflare Pages (CF_PAGES) to use 'export', defaults to 'standalone' for Docker - wrangler.json: Removed invalid binding for static deploy - package.json: Added build:static script
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
||||
import type { NextConfig } from "next";
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
output: 'export',
|
||||
output: (process.env.STATIC_EXPORT || process.env.CF_PAGES) ? 'export' : 'standalone',
|
||||
images: {
|
||||
unoptimized: true,
|
||||
},
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
"scripts": {
|
||||
"dev": "next dev",
|
||||
"build": "next build",
|
||||
"build:static": "STATIC_EXPORT=true next build",
|
||||
"start": "next start",
|
||||
"lint": "eslint",
|
||||
"test": "vitest run",
|
||||
|
||||
Reference in New Issue
Block a user