{"id":25185132,"url":"https://github.com/jhasuraj01/github-cron","last_synced_at":"2025-04-04T08:41:50.355Z","repository":{"id":39092496,"uuid":"411370824","full_name":"jhasuraj01/github-cron","owner":"jhasuraj01","description":"This is the Demonstration for how easily we can use Next.js and GitHub Actions to Create Sites with Dynamic content and schedule CRON Job for auto build at specific time/interval of time.","archived":false,"fork":false,"pushed_at":"2024-04-23T00:40:29.000Z","size":2570,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-23T05:29:43.411Z","etag":null,"topics":["actions","cron","cronjob","scheduler"],"latest_commit_sha":null,"homepage":"https://jhasuraj.com/github-cron/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jhasuraj01.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2021-09-28T17:05:26.000Z","updated_at":"2024-04-25T02:14:07.504Z","dependencies_parsed_at":"2023-11-17T02:28:58.608Z","dependency_job_id":"35e36ecb-edb6-40c0-ab62-870375d74979","html_url":"https://github.com/jhasuraj01/github-cron","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhasuraj01%2Fgithub-cron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhasuraj01%2Fgithub-cron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhasuraj01%2Fgithub-cron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhasuraj01%2Fgithub-cron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jhasuraj01","download_url":"https://codeload.github.com/jhasuraj01/github-cron/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247149062,"owners_count":20891948,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actions","cron","cronjob","scheduler"],"created_at":"2025-02-09T19:36:54.723Z","updated_at":"2025-04-04T08:41:50.322Z","avatar_url":"https://github.com/jhasuraj01.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub Actions Auto Build and Deploy Next.js APP with CRON JOB\n\nWe Have two different nextjs config for dev and github pages\n## Next Config for Dev Environment\n\nUpdate the next.config.js as given below for development environment\n```javascript\n// next.config.js\n\nmodule.exports = {\n    reactStrictMode: true,\n    //  basePath: '/github-cron',\n}\n```\n\n## Run the local server\n```bash\nnpm run dev\n```\nOpen [http://localhost:8080](http://localhost:8080) with your browser to see the result.\n\n\n## Next Config for Github Pages\nUpdate the next.config.js accordingly before deploy to github.\n```javascript\n// next.config.js\nmodule.exports = {\n    reactStrictMode: true,\n    // only needed when you are not hosting this project from root directory\n    basePath: '/github-cron',\n}\n```\n\n## Static Build\n```bash\nnpm run export\n```\nThis will generate all the static files in ```/docs``` folder. You can directly push all the changes including ```/docs``` folder to GitHub and you GitHub site will be automatically updated.\n\n\u003e Remember to update your GitHub Pages Build Directory to ```/docs``` in GitHub Settings.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjhasuraj01%2Fgithub-cron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjhasuraj01%2Fgithub-cron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjhasuraj01%2Fgithub-cron/lists"}