feat: configure static export for Cloudflare Pages

Set output: 'export' and distDir: 'out' for static site build.

#VERCEL_SKIP

Co-authored-by: Jeff Emmett <46964190+Jeff-Emmett@users.noreply.github.com>
This commit is contained in:
v0 2025-11-08 03:24:23 +00:00
parent 4b4fcc6867
commit f74bedd730
5 changed files with 10 additions and 8 deletions

2
.gitignore vendored
View File

@ -24,4 +24,4 @@ yarn-error.log*
# typescript
*.tsbuildinfo
next-env.d.ts
next-env.d.ts

View File

@ -27,4 +27,4 @@ Continue building your app on:
1. Create and modify your project using [v0.app](https://v0.app)
2. Deploy your chats from the v0 interface
3. Changes are automatically pushed to this repository
4. Vercel deploys the latest version from this repository
4. Vercel deploys the latest version from this repository

View File

@ -1,5 +1,7 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'export',
distDir: 'out',
eslint: {
ignoreDuringBuilds: true,
},
@ -11,4 +13,4 @@ const nextConfig = {
},
}
export default nextConfig
export default nextConfig

View File

@ -30,7 +30,7 @@
"@radix-ui/react-select": "2.1.4",
"@radix-ui/react-separator": "1.1.1",
"@radix-ui/react-slider": "1.2.2",
"@radix-ui/react-slot": "1.1.1",
"@radix-ui/react-slot": "latest",
"@radix-ui/react-switch": "1.1.2",
"@radix-ui/react-tabs": "1.1.2",
"@radix-ui/react-toast": "1.2.4",
@ -47,7 +47,7 @@
"input-otp": "1.4.1",
"lucide-react": "^0.454.0",
"next": "16.0.0",
"next-themes": "^0.4.6",
"next-themes": "latest",
"react": "19.2.0",
"react-day-picker": "9.8.0",
"react-dom": "19.2.0",

View File

@ -72,8 +72,8 @@ importers:
specifier: 1.2.2
version: 1.2.2(@types/react-dom@19.0.0)(@types/react@19.0.0)(react-dom@19.2.0(react@19.2.0))(react@19.2.0)
'@radix-ui/react-slot':
specifier: 1.1.1
version: 1.1.1(@types/react@19.0.0)(react@19.2.0)
specifier: latest
version: 1.2.4(@types/react@19.0.0)(react@19.2.0)
'@radix-ui/react-switch':
specifier: 1.1.2
version: 1.1.2(@types/react-dom@19.0.0)(@types/react@19.0.0)(react-dom@19.2.0(react@19.2.0))(react@19.2.0)
@ -123,7 +123,7 @@ importers:
specifier: 16.0.0
version: 16.0.0(react-dom@19.2.0(react@19.2.0))(react@19.2.0)
next-themes:
specifier: ^0.4.6
specifier: latest
version: 0.4.6(react-dom@19.2.0(react@19.2.0))(react@19.2.0)
react:
specifier: 19.2.0