analogjs / analog

The fullstack meta-framework for Angular. Powered by Vite and Nitro
https://analogjs.org
MIT License
2.61k stars 251 forks source link

RFC: Change default output directory to match Nitro #1449

Open brandonroberts opened 1 week ago

brandonroberts commented 1 week ago

Which scope/s are relevant/related to the feature request?

vite-plugin-nitro

Information

Currently, we use a custom output directory. dist/analog/public for static assets and dist/analog/server for the built server. Depending on the deployment provider, the output directory could also change. We have some workarounds for special cases today.

This change would use Nitro's default .output directory at the root and use a different directory for interemediate builds assets like client, ssr, and .nitro.

This would be introduced using a flag, and the default would be flipped in Analog 2.0.

Describe any alternatives/workarounds you're currently using

No response

I would be willing to submit a PR to fix this issue