diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index 07361e3..0000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: Deploy TestMate - -on: - push: - branches: - - main # Change this to your default branch if different - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Set up Node.js - uses: actions/setup-node@v2 - with: - node-version: '18' # Specify Node.js version 18 - - - name: Install dependencies - run: npm install - - - name: Build the application - run: npm run build - - - name: Deploy to Vercel - uses: amondnet/vercel-action@v20.0.0 - with: - vercel-token: ${{ secrets.VERCEL_TOKEN }} - vercel-org-id: ${{ secrets.VERCEL_ORG_ID }} - vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }} diff --git a/next.config.mjs b/next.config.mjs index a4dd8fd..c94cb5a 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -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; diff --git a/package.json b/package.json index 000fe6f..5d83932 100644 --- a/package.json +++ b/package.json @@ -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", @@ -23,4 +23,4 @@ "postcss": "^8", "tailwindcss": "^3.4.1" } -} +} \ No newline at end of file diff --git a/src/app/components/Quiz.js b/src/app/components/Quiz.js index 5179ad1..0bcfecc 100644 --- a/src/app/components/Quiz.js +++ b/src/app/components/Quiz.js @@ -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}`); }