Skip to content

Add Next.js setup with Docker support to publishers playground #8690

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mitchdenny
Copy link
Member

Introduce Next.js for improved JavaScript publishing scenarios and configure Docker for building and publishing the application.

@Copilot Copilot AI review requested due to automatic review settings April 10, 2025 06:34
@mitchdenny mitchdenny self-assigned this Apr 10, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 14 out of 20 changed files in this pull request and generated 1 comment.

Files not reviewed (6)
  • playground/publishers/Publishers.AppHost/Publishers.AppHost.csproj: Language not supported
  • playground/publishers/adminportal/.dockerignore: Language not supported
  • playground/publishers/adminportal/Dockerfile: Language not supported
  • playground/publishers/adminportal/app/globals.css: Language not supported
  • playground/publishers/adminportal/package.json: Language not supported
  • playground/publishers/adminportal/tsconfig.json: Language not supported


var created = await db.Database.EnsureCreatedAsync();
if (created)
while (true)
Copy link
Preview

Copilot AI Apr 10, 2025

Choose a reason for hiding this comment

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

Using an infinite loop for database creation retry may lead to an indefinite hang if the database setup continuously fails. Consider introducing a maximum retry count or an exponential backoff mechanism to prevent potential issues in production.

Suggested change
while (true)
const int maxRetryCount = 5;
int retryCount = 0;
int delay = 1000; // initial delay in milliseconds
while (retryCount < maxRetryCount)

Copilot uses AI. Check for mistakes.

Copy link
Member

Choose a reason for hiding this comment

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

Why not use waitfor?

Copy link
Member Author

Choose a reason for hiding this comment

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

Didn't work in deployed scenarios.

@mitchdenny mitchdenny added this to the 9.3 milestone Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants