SoftServedWeb-com / dev-thing

An opensource local WP but for node JS frameworks
https://devthing.softservedweb.com/
GNU General Public License v3.0
6 stars 4 forks source link

[Bug] Missing `public/` folder in new site #10

Open aswnss-m opened 4 weeks ago

aswnss-m commented 4 weeks ago

Describe the bug
In the application, when creating a new site using the dedicated "Create New Site" button, the public/ folder is not generated by default. This folder is usually where static assets (images, files, etc.) are stored.

To Reproduce
Steps to reproduce the behavior:

  1. Open the application and click on the "Create New Site" button to generate a new site.
  2. Navigate to the root directory of the newly created site.
  3. Observe that the public/ folder is not generated as part of the initial structure.

Expected behavior
The public/ folder should be automatically generated within the project structure when creating a new site using the "Create New Site" button, allowing users to add static assets without needing to create the folder manually.

Screenshots
Created using the app Created using the app

Created using create-next-app@rc Created using create-next-app@rc

Environment:

Additional context
This issue may cause confusion for developers expecting the public/ folder to be pre-included in newly created sites, as it was in earlier versions of Next.js. A fix or a clarification in the documentation would be helpful.

AnirudhDaya commented 4 weeks ago

First of all great spotting!

create-next-app@latest

was used to create new project in the case of the app, which does not have public folder.

but

create-next-app@rc

does have a public folder

AnirudhDaya commented 4 weeks ago

I'm marking this as a feature request as , we can allow users to choose specific versions of flags they want to add when creating projects