-
Notifications
You must be signed in to change notification settings - Fork 52
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
Cleanup & Adjustment to support static site generation #50
Cleanup & Adjustment to support static site generation #50
Conversation
@lucifercr07 Can you review this and let me know if something else needs to be done. |
@@ -118,6 +118,28 @@ To create a production build: | |||
npm run build | |||
``` | |||
|
|||
## Creating a Static Production Build | |||
|
|||
To generate a static production build of your Next.js application, follow these steps: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'd also need to move export const SHELL_COMMAND_URL = 'http://localhost:8080/shell/exec';
as part of .env
for this, otherwise won't be configurable.
import { Clipboard } from 'lucide-react'; | ||
import { DiceCmdMeta } from '@/data/command'; | ||
|
||
export default function CommandPage({ title, syntax, body, url }: DiceCmdMeta) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this seems unrelated to static site generation, and it breaks the behaviour of "Copied" showing up is that expected?
src/shared/components/Button.tsx
Outdated
className = '', | ||
variant = 'default', | ||
}: ButtonProps) { | ||
const baseClasses = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doesn't seem like this should be inside the function component, would re-define on every render.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.