Skip to content
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

Conversation

N3XT14
Copy link
Contributor

@N3XT14 N3XT14 commented Oct 5, 2024

No description provided.

@N3XT14
Copy link
Contributor Author

N3XT14 commented Oct 6, 2024

@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:
Copy link
Contributor

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) {
Copy link
Contributor

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?

className = '',
variant = 'default',
}: ButtonProps) {
const baseClasses =
Copy link
Contributor

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.

Copy link
Contributor

@KaviiSuri KaviiSuri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lucifercr07 lucifercr07 merged commit e83511e into DiceDB:master Oct 6, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants