Skip to content

Commit

Permalink
Update prebuild.js
Browse files Browse the repository at this point in the history
  • Loading branch information
aabhinavg1 authored Dec 27, 2024
1 parent 647e159 commit 6601333
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions prebuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,8 @@ if (!PAT_TOKEN) {

console.log(`Using PAT_TOKEN: ${PAT_TOKEN}`);


// Check if the PAT_TOKEN is provided
if (!PAT_TOKEN) {
throw new Error('GitHub Personal Access Token (PAT) is missing. Please set it in the environment variables.');
}

// Construct the repository URL using the PAT_TOKEN
const REPO_URL = `https://${PAT_TOKEN}@github.com/aabhinavg1/newletter_modal.git`;
const REPO_URL = `https://${PAT_TOKEN}@github.com/aabhinavg1/newsletter_modal.git`; // Correct repository name
const CLONE_DIR = path.resolve(__dirname, 'src/pages/newsletter_modal_updated');

// Function to delete the directory if it exists
Expand Down

0 comments on commit 6601333

Please sign in to comment.