Skip to content

Commit

Permalink
tech: update fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ramsunvtech committed Jan 6, 2025
1 parent d53ffac commit 9fe7608
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 39 deletions.
32 changes: 0 additions & 32 deletions .github/workflows/deploy.yml

This file was deleted.

4 changes: 2 additions & 2 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'export',
basePath: '/test-mate',
assetPrefix: '/test-mate/',
// basePath: '/test-mate',
// assetPrefix: '/test-mate',
};

export default nextConfig;
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"homepage": "https://web-slate.github.io/test-mate/",
"name": "test-mate",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"export": "next build && next export",
"start": "next start",
"lint": "next lint",
"predeploy": "npm run build && npm run export",
"deploy": "gh-pages -d out"
"predeploy": "npm run build",
"deploy": "gh-pages -d out --nojekyll"
},
"dependencies": {
"next": "15.1.3",
Expand All @@ -23,4 +23,4 @@
"postcss": "^8",
"tailwindcss": "^3.4.1"
}
}
}
2 changes: 1 addition & 1 deletion src/app/components/Quiz.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default function Quiz({ quizType, user, resetQuiz }) {
setIsLoading(true);
setError(null);
try {
const response = await fetch(`test-mate/data/${quizType}.json`);
const response = await fetch(`data/${quizType}.json`);
if (!response.ok) {
throw new Error(`HTTP error! status: ${response.status}`);
}
Expand Down

0 comments on commit 9fe7608

Please sign in to comment.