{"id":21075170,"url":"https://github.com/nutgaard/nginx-nextjs-test","last_synced_at":"2025-03-14T03:40:40.876Z","repository":{"id":181503793,"uuid":"666870175","full_name":"nutgaard/nginx-nextjs-test","owner":"nutgaard","description":"Testing how to achieve multiple basePaths with single instance of NextJs","archived":false,"fork":false,"pushed_at":"2023-08-03T20:10:17.000Z","size":141,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-20T22:48:59.889Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/nutgaard.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":"2023-07-15T21:28:26.000Z","updated_at":"2023-07-15T21:29:12.000Z","dependencies_parsed_at":"2025-01-20T22:46:26.177Z","dependency_job_id":"2b9dbbff-bd05-49b1-8659-3c39e3d03440","html_url":"https://github.com/nutgaard/nginx-nextjs-test","commit_stats":null,"previous_names":["nutgaard/nginx-nextjs-test"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nutgaard%2Fnginx-nextjs-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nutgaard%2Fnginx-nextjs-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nutgaard%2Fnginx-nextjs-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nutgaard%2Fnginx-nextjs-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nutgaard","download_url":"https://codeload.github.com/nutgaard/nginx-nextjs-test/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243521141,"owners_count":20304183,"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":[],"created_at":"2024-11-19T19:20:01.161Z","updated_at":"2025-03-14T03:40:40.853Z","avatar_url":"https://github.com/nutgaard.png","language":"TypeScript","readme":"# Nginx-Nextjs-Test\n\nThis is a test project to investigate using Nginx as reverse proxy to achieve a setup with Next.js which supports multiple basePaths.\n\n## Getting Started\n\nFirst, run the development server:\n\n```bash\nnpm run dev\n# or\nyarn dev\n# or\npnpm dev\n```\n\n## Running with proxy\n\nTo achieve multiple `basePath` while still using a single Next.js application there is a nginx reverse proxy included.\n\nThere are two ways of starting the application in development mode;\n1. Start the Next.js app with `npm run dev` and start the local-proxy `docker compose up local-proxy`. This is done automatically with the command `make dev-local`\n2. Start the Next.js app within a docker container with the `/src` folder mounted. This is done automatically with the command `make dev`\n\nIn both cases hot-reloading works as expected. And it is a matter of taste which approach to use.\n\nTo build the application and test it in \"production mode\", run `make start`. This will first build your application, before starting it and the proxy.\n\n\n**Summary:**\n```\nmake dev       # Next.js app is running on host-system\nmake dev-local # Next.js app is running within a container\nmake start     # Build and create docker images, and starts them\nmake stop      # Stops all containers within this project\n```\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnutgaard%2Fnginx-nextjs-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnutgaard%2Fnginx-nextjs-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnutgaard%2Fnginx-nextjs-test/lists"}