diff --git a/.github/ISSUE_TEMPLATE/bug.yml b/.github/ISSUE_TEMPLATE/bug.yml index 0482faf..5d23144 100644 --- a/.github/ISSUE_TEMPLATE/bug.yml +++ b/.github/ISSUE_TEMPLATE/bug.yml @@ -23,5 +23,5 @@ body: - label: "I agree to follow this project's Code of Conduct" required: true - label: "I'm a GSSoC'24 Extd Contributor" - - label: "I'm a Hacktoberfest'24 registered Contributor" + # - label: "I'm a Hacktoberfest'24 registered Contributor" - label: "I want to work on this issue" \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/documentation.yml b/.github/ISSUE_TEMPLATE/documentation.yml index a241c2f..717c532 100644 --- a/.github/ISSUE_TEMPLATE/documentation.yml +++ b/.github/ISSUE_TEMPLATE/documentation.yml @@ -22,5 +22,5 @@ body: - label: "I agree to follow this project's Code of Conduct" required: true - label: "I'm GSSOC'24 Extd registered Contributor" - - label: "I'm Hacktoberfest registered Contributor" + # - label: "I'm Hacktoberfest registered Contributor" - label: "I want to work on this documentation issue" diff --git a/.github/ISSUE_TEMPLATE/feature.yml b/.github/ISSUE_TEMPLATE/feature.yml index 87c20ca..6eb72a9 100644 --- a/.github/ISSUE_TEMPLATE/feature.yml +++ b/.github/ISSUE_TEMPLATE/feature.yml @@ -22,5 +22,5 @@ body: - label: "I agree to follow this project's Code of Conduct" required: true - label: "I'm GSSOC'24 Extd registered Contributor" - - label: "I'm Hacktoberfest registered Contributor" + # - label: "I'm Hacktoberfest registered Contributor" - label: "I want to work on this issue" \ No newline at end of file diff --git a/.github/workflows/issue-reminder.yml b/.github/workflows/issue-reminder.yml index 630b501..1c707c0 100644 --- a/.github/workflows/issue-reminder.yml +++ b/.github/workflows/issue-reminder.yml @@ -1,33 +1,33 @@ -name: 'open-issue reminder' +# name: 'open-issue reminder' -on: - schedule: - - cron: '15 4 * * *' -jobs: - welcome: - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v2 +# on: +# schedule: +# - cron: '15 4 * * *' +# jobs: +# welcome: +# runs-on: ubuntu-latest +# steps: +# - name: Checkout repository +# uses: actions/checkout@v2 - - name: Run script - uses: actions/github-script@v4 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - script: | - const { data: issues } = await github.issues.listForRepo({ - owner: context.repo.owner, - repo: context.repo.repo, - state: 'open' - }); - for (const issue of issues) { - const issueComment = `Hi there! This issue is still open. We are looking forward to your response. - Assignees: ${issue.assignees.map(assignee => '@' + assignee.login).join(', ') || 'None'}`; - await github.issues.createComment({ - issue_number: issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - body: issueComment - }); - } +# - name: Run script +# uses: actions/github-script@v4 +# with: +# github-token: ${{ secrets.GITHUB_TOKEN }} +# script: | +# const { data: issues } = await github.issues.listForRepo({ +# owner: context.repo.owner, +# repo: context.repo.repo, +# state: 'open' +# }); +# for (const issue of issues) { +# const issueComment = `Hi there! This issue is still open. We are looking forward to your response. +# Assignees: ${issue.assignees.map(assignee => '@' + assignee.login).join(', ') || 'None'}`; +# await github.issues.createComment({ +# issue_number: issue.number, +# owner: context.repo.owner, +# repo: context.repo.repo, +# body: issueComment +# }); +# } diff --git a/next.config.mjs b/next.config.mjs index fee7091..a00931e 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,8 +1,29 @@ /** @type {import('next').NextConfig} */ const nextConfig = { images: { - domains: ['avatars.githubusercontent.com'], - }, + domains: ["avatars.githubusercontent.com"], + }, + async headers() { + return [ + { + source: "/api/:path*", + headers: [ + { + key: "Access-Control-Allow-Origin", + value: "*", // Or specify your allowed origin + }, + { + key: "Access-Control-Allow-Methods", + value: "GET, POST, PUT, DELETE, OPTIONS", + }, + { + key: "Access-Control-Allow-Headers", + value: "Content-Type, Authorization", + }, + ], + }, + ]; + }, }; export default nextConfig;