Add Deploy to PandaStack button - #59
Open
ajaysourcedigital wants to merge 1 commit into
Open
Conversation
| ### Deploy with Vercel | ||
|
|
||
| [](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Farhamkhnz%2Fnext-shadcn-admin-dashboard) | ||
| [](https://dashboard.pandastack.io/deploy?repo=arhamkhnz/next-shadcn-admin-dashboard&type=static&buildCmd=npm+run+build&outputDir=dist) |
There was a problem hiding this comment.
The deploy URL parameters
type=static and outputDir=dist are both incorrect for this project. next.config.mjs has no output: 'export' setting and defines server-side redirects(), so this is an SSR app — not a static site. next build writes to .next, not dist. Deploying with these parameters will either fail at the artifact-collection step (missing dist/) or produce a broken deployment that cannot serve server-side routes or redirects.
Suggested change
| [](https://dashboard.pandastack.io/deploy?repo=arhamkhnz/next-shadcn-admin-dashboard&type=static&buildCmd=npm+run+build&outputDir=dist) | |
| [](https://dashboard.pandastack.io/deploy?repo=arhamkhnz/next-shadcn-admin-dashboard&type=node&buildCmd=npm+run+build&startCmd=npm+run+start&outputDir=.next) |
Prompt To Fix With AI
This is a comment left during a code review.
Path: README.md
Line: 91
Comment:
The deploy URL parameters `type=static` and `outputDir=dist` are both incorrect for this project. `next.config.mjs` has no `output: 'export'` setting and defines server-side `redirects()`, so this is an SSR app — not a static site. `next build` writes to `.next`, not `dist`. Deploying with these parameters will either fail at the artifact-collection step (missing `dist/`) or produce a broken deployment that cannot serve server-side routes or redirects.
```suggestion
[](https://dashboard.pandastack.io/deploy?repo=arhamkhnz/next-shadcn-admin-dashboard&type=node&buildCmd=npm+run+build&startCmd=npm+run+start&outputDir=.next)
```
How can I resolve this? If you propose a fix, please make it concise.
xdroberto
added a commit
to xdroberto/nova-analytics
that referenced
this pull request
Jul 8, 2026
…lesson UptimeRobot monitor live (last Phase-4 item) -> Phase 4 FULLY CLOSED: ADR-004 monitoring section, ROADMAP milestones (4325946), BRAIN current position. Disk builder-prune recorded honestly: 87%->74% (~4GB real, not the 21GB docker advertised - shared layers overcount). gh default-repo gotcha logged as a lesson (set-default now fork; was the arhamkhnz#59/arhamkhnz#61 misread cause). Post-merge push-to-deploy verified from the PR merge (~3m09s, health ok).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Add Deploy to PandaStack button
This PR adds a Deploy to PandaStack button alongside the existing Vercel button.
PandaStack is a cloud deployment platform — supports static sites, containerized apps, databases, cronjobs, and more. A great alternative hosting option for your users.
What this adds
Happy to adjust build settings or output directory if needed. Feel free to close if you'd prefer to keep one button. 🙂
Greptile Summary
This PR adds a one-line "Deploy to PandaStack" badge to
README.mdalongside the existing Vercel button. The badge URL contains build parameters that do not match the project's actual Next.js setup, which would cause the deploy flow to fail or produce a broken site for anyone who clicks it.type=staticis specified, but this project is a Next.js SSR application with server-sideredirects()configured and nooutput: 'export'innext.config.mjs— a static deployment cannot serve it correctly.outputDir=distdoes not exist in this project;next buildwrites its output to.next, so PandaStack would look for an artifact directory that is never produced.Confidence Score: 3/5
The change is documentation-only but the deploy URL it introduces points to a misconfigured build that would fail or produce a broken deployment for every user who clicks it.
The deploy button hard-codes
type=staticandoutputDir=dist, neither of which matches this Next.js project. The project has server-side redirects and no static-export configuration, so anyone clicking the button would get a failed or broken deployment. The fix is confined to the URL query string in one line of README.md.README.md — the PandaStack deploy URL needs corrected
type,outputDir, and astartCmdbefore the button is useful.Important Files Changed
type=staticandoutputDir=distdo not match this Next.js SSR project's actual output configuration.Sequence Diagram
sequenceDiagram actor User participant README as README.md participant PandaStack as dashboard.pandastack.io participant Repo as GitHub Repo User->>README: Clicks "Deploy to PandaStack" button README->>PandaStack: "GET /deploy?type=static&buildCmd=npm+run+build&outputDir=dist" PandaStack->>Repo: Clone repository PandaStack->>PandaStack: Run npm run build (outputs to .next, not dist) PandaStack->>PandaStack: Look for output in dist/ (does not exist) PandaStack-->>User: Deployment fails or serves broken site Note over PandaStack,User: type=static skips Node.js server needed for redirects()Prompt To Fix All With AI
Reviews (1): Last reviewed commit: "docs: add Deploy to PandaStack button" | Re-trigger Greptile