Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
gh pages #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: guru
Are you sure you want to change the base?
Uh oh!
There was an error while loading. Please reload this page.
gh pages #2
Changes from all commits
6efdda423640ee378ded4a660373b1a70a7091d68116d9587cd4e970aea019343c35be693324479c8b56f5e6832f759a2694c7155b2bfeb73d2d3682bdc63b56e08ec506c6f0f2294f176bc0e7b362d62File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
Portfolio-builderPortfolio BuilderCreate, preview, and publish beautiful developer portfolios with Next.js 14, TypeScript, Tailwind CSS, and shadcn/ui. This project supports static export and GitHub Pages deployment with CI/CD.
Live (GitHub Pages): https://CICD-PROJECT-S103.github.io/Portfolio-builder
Features
/builder?template={id}/preview/{template}(no navbar/footer) Responsive design, dark/light theme App Router (Next.js 14) with static export for GitHub Pages Ready for CI/CD (build, type-check, lint, and deploy)Tech Stack
Quick start
Prerequisites: Node.js 18+ (LTS recommended) and your preferred package manager (pnpm or npm).
Install dependencies and run the dev server:
Open http://localhost:3000 (or the next available port) to view the app.
Useful scripts
{ "dev": "next dev", "build": "next build", "start": "next start", "export": "next build", // static export is enabled via next.config.mjs (output: 'export') "deploy": "npm run export && gh-pages -d out" // optional local deploy helper }Project structure (high level)
Fullscreen preview (new)
/templates, use the Preview button to open a new tab with a full-window preview:/preview/{templateId}.Static export and GitHub Pages
This project is configured for static export:
next.config.mjssetsoutput: 'export'andtrailingSlash: true.basePathandassetPrefixset to/Portfolio-builderto work under GitHub Pages.next buildwill create the static site underout/.Local one-off publish to GitHub Pages using gh-pages:
# ensure you have push access to the repo remote npm run deployCI/CD with GitHub Actions
Below are two example workflows. Pick one deploy method (official Pages deploy or gh-pages). Both include a CI job that type-checks and builds.
1) Official GitHub Pages (upload-pages-artifact + deploy-pages)
Save as
.github/workflows/pages.yml:Notes:
https://<your-org>.github.io/Portfolio-builder.2) Deploy using gh-pages (peaceiris/actions-gh-pages)
Save as
.github/workflows/gh-pages.yml:Development tips
app/.basePathin production (GitHub Pages).Contributing
Issues and PRs are welcome. If you change public behavior, please add or update minimal tests or docs.
License
MIT License. See
LICENSE(add one if missing).Portfolio-builder
Uh oh!
There was an error while loading. Please reload this page.