ChatGPTNextWeb / ChatGPTNextWeb/NextChat

[Bug] npm run export: Server Actions are not supported with static export.

Open
#6,154 7 comments 5 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
88.8k
Forks
59.1k
PR merge metrics
No merged PRs in 30d

Description

### 📦 部署方式

Other

### 📌 软件版本

2.15.8

### 💻 系统环境

Windows

### 📌 系统版本

Windows 11

### 🌐 浏览器

Edge

### 📌 浏览器版本

Edge Newest

### 🐛 问题描述

hi all,

I am going to compile NextChat locally and package it using Tauri.

My compilation environment is: Windows.

I successfully ran the following commands:

> npm run dev

> npm run app:dev

But when I executed `npm run export`, the following error occurred:

> Server Actions are not supported with static export.

I know that NextJS must use export mode when packaging with Tauri.

Am I missing something?

### 📷 复现步骤

_No response_

### 🚦 期望结果

_No response_

### 📝 补充信息

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.