-
Notifications
You must be signed in to change notification settings - Fork 608
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
base: main
Are you sure you want to change the base?
Conversation
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.
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) |
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.
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.
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.
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.
Why not use waitfor?
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.
Didn't work in deployed scenarios.
Introduce Next.js for improved JavaScript publishing scenarios and configure Docker for building and publishing the application.