-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
10,594 additions
and
10,789 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
# IET NITK Strapi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,22 @@ | ||
module.exports = ({ env }) => { | ||
if (env("NODE_ENV") === "production") { | ||
return { | ||
upload: { | ||
provider: 'cloudinary', | ||
const plugins = { | ||
"github-publish": { | ||
owner: "IET-NITK", // The gothub organisation or user | ||
repo: "IET-NITK.github.io", // The name of the repository | ||
workflow_id: "deploy.yml", // The workflow_id or filename | ||
token: env("GITHUB_TOKEN"), // The GitHub personal access token with access to trigger workflows and view build status | ||
branch: "daddy", // The branch the workflow should be triggered on | ||
}, | ||
}; | ||
if (env("NODE_ENV") === "production") { | ||
plugins["upload"]={ | ||
provider: "cloudinary", | ||
providerOptions: { | ||
cloud_name: env('CLOUDINARY_NAME'), | ||
api_key: env('CLOUDINARY_KEY'), | ||
api_secret: env('CLOUDINARY_SECRET'), | ||
} | ||
cloud_name: env("CLOUDINARY_NAME"), | ||
api_key: env("CLOUDINARY_KEY"), | ||
api_secret: env("CLOUDINARY_SECRET"), | ||
}, | ||
} | ||
} | ||
} | ||
}; | ||
return plugins | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.