Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,3 @@ jobs:
run: bun run build
env:
NODE_ENV: production
NEXT_TELEMETRY_DISABLED: 1

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./out

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
2 changes: 1 addition & 1 deletion lib/spark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export async function chatSparkX1Http({
user: "GoodActionHub",
}

const resp = await fetch("https://spark-api-open.xf-yun.com/v1/chat/completions", {
const resp = await fetch("https://spark-api-open.xf-yun.com/v2/chat/completions", {
method: "POST",
headers: {
"Content-Type": "application/json",
Expand Down
15 changes: 6 additions & 9 deletions next.config.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
import type { NextConfig } from "next";

const isDev = process.env.NODE_ENV === 'development';
import type { NextConfig } from "next"

const nextConfig: NextConfig = {
output: 'export',
...(process.env.NEXT_OUTPUT === "export" ? { output: "export" } : {}),
trailingSlash: true,
skipTrailingSlashRedirect: true,
images: {
unoptimized: true
unoptimized: true,
},
experimental: {
}
};
experimental: {},
}

export default nextConfig;
export default nextConfig
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"dev": "next dev",
"build": "next build",
"build:static": "set COREPACK_ENABLE_AUTO_PIN=0 && next build",
"build:static": "NEXT_OUTPUT=export COREPACK_ENABLE_AUTO_PIN=0 next build",
"build:github": "next build",
"build:huawei": "npm run build:static",
"build:netlify": "next build",
Expand Down