Support for safe collocation of files and folders #2345
Replies: 3 comments 2 replies
-
Thanks for pointing this out @BranchBotanist ! If not, what is the solution? Bunlding on both sides right? |
Beta Was this translation helpful? Give feedback.
-
@BranchBotanist could you give us an example to check out? |
Beta Was this translation helpful? Give feedback.
-
Moved this to an issue! |
Beta Was this translation helpful? Give feedback.
-
Wasp primarily uses a declarative approach for structuring apps, meaning that it automatically handles much of the deployment process based on the framework's patterns. Files like those in the public folder or configuration files that follow the typical Wasp project structure (such as main.wasp, Prisma schemas, and source code) are automatically included in the deployment. You don't need to specify them explicitly.
However, for files that fall outside the framework's expected structure but are still in your repository, you would indeed have to exclude them manually using .waspignore. This approach does introduce the possibility of human error when manually managing exclusions. Unfortunately, Wasp doesn't currently support a mode where it strictly includes only what's required for deployment (like some frameworks do) by default, unless those files are explicitly marked for inclusion.
The current safest way is to follow the Wasp project structure closely and use .waspignore for anything extra, but it doesn't yet provide a fully automated "safe inclusion" system based purely on default patterns
Beta Was this translation helpful? Give feedback.
All reactions