{"id":21855603,"url":"https://github.com/zeropsio/recipe-nextjs-static","last_synced_at":"2026-01-12T06:25:26.204Z","repository":{"id":249539087,"uuid":"831716752","full_name":"zeropsio/recipe-nextjs-static","owner":"zeropsio","description":"Next.js Static on Zerops","archived":false,"fork":false,"pushed_at":"2024-08-01T14:17:14.000Z","size":62,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-25T02:19:01.384Z","etag":null,"topics":["nextjs","nextjs-ssg","nextjs-static","nextjs14","zerops","zerops-deployment","zerops-recipe"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/zeropsio.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,"publiccode":null,"codemeta":null}},"created_at":"2024-07-21T12:21:33.000Z","updated_at":"2024-08-01T14:17:18.000Z","dependencies_parsed_at":"2024-11-28T02:16:43.291Z","dependency_job_id":"dba94409-2425-4457-89fd-a97d53d2d344","html_url":"https://github.com/zeropsio/recipe-nextjs-static","commit_stats":null,"previous_names":["zeropsio/recipe-nextjs-static"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeropsio%2Frecipe-nextjs-static","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeropsio%2Frecipe-nextjs-static/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeropsio%2Frecipe-nextjs-static/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeropsio%2Frecipe-nextjs-static/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zeropsio","download_url":"https://codeload.github.com/zeropsio/recipe-nextjs-static/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246473279,"owners_count":20783236,"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","nextjs-ssg","nextjs-static","nextjs14","zerops","zerops-deployment","zerops-recipe"],"created_at":"2024-11-28T02:16:33.145Z","updated_at":"2026-01-12T06:25:26.198Z","avatar_url":"https://github.com/zeropsio.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Zerops x Next.js - Static\n\nNext.js is a React framework for fast, dynamic full-stack web apps with both server-side rendering and static site generation. \u003ca href=\"https://zerops.io/\" target=\"_blank\"\u003eZerops\u003c/a\u003e makes deploying and running Next.js apps, both server side rendered and static, a breeze.\n\nThis recipe showcases the SSG Static version, see [zeropsio/recipe-nextjs-nodejs](https://github.com/zeropsio/recipe-nextjs-nodejs) for the Node.js version.\n\n![nextjs](https://github.com/zeropsio/recipe-shared-assets/blob/main/covers/svg/cover-nextjs.svg)\n\n\u003cbr/\u003e\n\n## Deploy to Zerops\n\nYou can either click the deploy button to deploy directly on Zerops, or manually copy the [import yaml](https://github.com/zeropsio/recipe-nextjs-static/blob/main/zerops-project-import.yml) to the import dialog in the Zerops app.\n\n[![Deploy on Zerops](https://github.com/zeropsio/recipe-shared-assets/blob/main/deploy-button/green/deploy-button.svg)](https://app.zerops.io/recipe/nextjs-static)\n\n\u003cbr/\u003e\n\n## Recipe features\n- Latest version of **Next.js 14+** with SSG running on a load balanced **Zerops Static** service.\n\n\u003cbr/\u003e\n\n## Production vs. development\nThis recipe is ready for production as is, and will scale horizontally by adding more containers in case of high traffic surges. If you want to achieve the highest baseline reliability and resiliace, start with at least two containers (add `minContainers: 2` in recipe YAML in the `app` service section, or change the minimum containers in \"Automatic Scaling configuration\" section of service detail).\n\n\u003cbr/\u003e\n\n## Changes made over the default installation\nIf you want to modify your existing Next.js app to efficiently run on Zerops, Follow this step:\n\n1. Go to [`next.config.mjs`](https://github.com/zeropsio/recipe-nextjs-static/blob/main/next.config.mjs) and add `output: 'export'` to nextConfig.\n\n```javascript\n/** @type {import('next').NextConfig} */\nconst nextConfig = {\n    output: 'export',\n};\n\nexport default nextConfig;\n```\n\nNow, there are no changes needed in the codebase on top of the standard installation, just add [zerops.yml](https://github.com/zeropsio/recipe-nextjs-static/blob/main/zerops.yml) to your repository.\n\n\u003cbr/\u003e\n\u003cbr/\u003e\n\nNeed help setting your project up? Join [Zerops Discord community](https://discord.com/invite/WDvCZ54).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeropsio%2Frecipe-nextjs-static","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzeropsio%2Frecipe-nextjs-static","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeropsio%2Frecipe-nextjs-static/lists"}