Skip to content

Commit 80bb84b

Browse files
authored
Merge pull request #83 from Amanmahe/main
This PR introduces new features and enhancements for real-time EEG signal processing
2 parents f70f429 + 4e5b50c commit 80bb84b

File tree

16 files changed

+4874
-253
lines changed

16 files changed

+4874
-253
lines changed

.github/workflows/deploy.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ jobs:
7373
${{ runner.os }}-nextjs-${{ hashFiles('*/package-lock.json', '*/yarn.lock') }}-
7474
- name: Install dependencies
7575
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
76+
- name: Install ts-node
77+
run: npm install -g ts-node
78+
- name: Run manifest generation script
79+
run: ts-node scripts/generateManifest.mjs
7680
- name: Build with Next.js
7781
run: ${{ steps.detect-package-manager.outputs.runner }} next build
7882
- name: Upload artifact
@@ -89,4 +93,4 @@ jobs:
8993
steps:
9094
- name: Deploy to GitHub Pages
9195
id: deployment
92-
uses: actions/deploy-pages@v4
96+
uses: actions/deploy-pages@v4

.github/workflows/nextjs.yml

Lines changed: 0 additions & 93 deletions
This file was deleted.

next.config.mjs

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
1+
import nextPwa from "next-pwa";
2+
13
/** @type {import('next').NextConfig} */
2-
const nextConfig = {
4+
const withPWA = nextPwa({
5+
dest: "public",
6+
register: true,
7+
skipWaiting: true,
8+
});
9+
10+
const isGithubActor = process.env.NEXT_PUBLIC_GITHUB_ACTOR === "upsidedownlabs" || process.env.NEXT_PUBLIC_GITHUB_ACTOR === undefined
11+
12+
const config = {
313
reactStrictMode: true,
4-
output: 'export', // This is key for static export
14+
output: "export", // Ensures it works with static export
15+
basePath: isGithubActor ? "" : "/Chords-Web",
16+
assetPrefix: isGithubActor ? "" : "/Chords-Web",
517
images: {
618
unoptimized: true,
719
remotePatterns: [
@@ -11,6 +23,7 @@ const nextConfig = {
1123
},
1224
],
1325
},
26+
...withPWA,
1427
};
15-
/* module.exports = nextConfig*/
16-
export default nextConfig;
28+
29+
export default config;

0 commit comments

Comments
 (0)