fix: correct npm command formatting in GitHub Actions workflow and add basePath to Next.js config

This commit is contained in:
averel10
2025-11-11 20:02:03 +01:00
parent 43496589ce
commit b253a4038f
3 changed files with 3 additions and 1 deletions

View File

@@ -29,7 +29,7 @@ jobs:
cache-dependency-path: crypto_clash_frontend/package-lock.json cache-dependency-path: crypto_clash_frontend/package-lock.json
- name: Build with Next.js - name: Build with Next.js
run: npm ci &&npm run build run: npm ci && npm run build
working-directory: crypto_clash_frontend working-directory: crypto_clash_frontend
- name: Upload artifact - name: Upload artifact

1
README.md Normal file
View File

@@ -0,0 +1 @@
Deployed URL: https://averel10.github.io/crypto_clash/

View File

@@ -1,6 +1,7 @@
import type { NextConfig } from "next"; import type { NextConfig } from "next";
const nextConfig: NextConfig = { const nextConfig: NextConfig = {
basePath: "/crypto_clash",
output: "export", // <=== enables static exports output: "export", // <=== enables static exports
reactStrictMode: true, reactStrictMode: true,
}; };