{"id":13680480,"url":"https://github.com/belongco/nextjs-serverless-setup","last_synced_at":"2025-04-29T23:31:50.313Z","repository":{"id":84501434,"uuid":"139438884","full_name":"belongco/nextjs-serverless-setup","owner":"belongco","description":"Deploying a next JS site to serverless","archived":false,"fork":false,"pushed_at":"2018-08-26T05:05:36.000Z","size":429,"stargazers_count":51,"open_issues_count":1,"forks_count":8,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-11-11T23:37:30.086Z","etag":null,"topics":["nextjs","react","serverless"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/belongco.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-07-02T12:12:28.000Z","updated_at":"2021-09-21T11:20:04.000Z","dependencies_parsed_at":"2023-03-12T23:09:50.024Z","dependency_job_id":null,"html_url":"https://github.com/belongco/nextjs-serverless-setup","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/belongco%2Fnextjs-serverless-setup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/belongco%2Fnextjs-serverless-setup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/belongco%2Fnextjs-serverless-setup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/belongco%2Fnextjs-serverless-setup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/belongco","download_url":"https://codeload.github.com/belongco/nextjs-serverless-setup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251600297,"owners_count":21615681,"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":["nextjs","react","serverless"],"created_at":"2024-08-02T13:01:17.516Z","updated_at":"2025-04-29T23:31:45.303Z","avatar_url":"https://github.com/belongco.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# nextjs-serverless\nDeploying a next JS site to serverless.\n\n### Running it locally\n\nFirst install the dependencies\n```\nyarn install\n```\n\nYou will also need to install [DynamoDB locally](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.DownloadingAndRunning.html).\n\nTo start DynamoDB run,\n```\njava -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDb\n```\nFor Development,\n```\nyarn run dev\n```\n\n\n### Deploying it on Lambda\n\nEnsure you populate the serverless-vpc-variables.yml file with\nthe values from your infrastucture against the various variables\ndefined.\n\n\nCreating a domain.\n```\nserverless create_domain --stage staging\n```\nIt might take about 40 minutes for the domain to initialize.\n\n\nPost that, deploy the serverless stack using the command\n```\nSLS_DEBUG=* serverless deploy --stage staging # For staging\nSLS_DEBUG=* serverless deploy --stage production # For production\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbelongco%2Fnextjs-serverless-setup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbelongco%2Fnextjs-serverless-setup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbelongco%2Fnextjs-serverless-setup/lists"}