This app uses pnpm
to generate license info from the apps/app
application to a json file. The astro app (apps/web
) will import the json file and render it.
![image](https://private-user-images.githubusercontent.com/996134/341081517-2c0969da-0d74-43cd-8e24-395f616ba39d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk2OTk5NzIsIm5iZiI6MTcxOTY5OTY3MiwicGF0aCI6Ii85OTYxMzQvMzQxMDgxNTE3LTJjMDk2OWRhLTBkNzQtNDNjZC04ZTI0LTM5NWY2MTZiYTM5ZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjI5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYyOVQyMjIxMTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lZmZiMWVjMDcyYjhhOWU4MDM3OGQ5NzdjYmYwZmFmNjlkYjEzMDNlMmVlODE5YTAzYTA0YjdiOGNhZTNmN2JhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.-GYWfsLfHEsou6YRfXbp4rqidVXGFqUv-fn_EKrPYAY)
We've seen that you have to explicit set the output dir to .vercel/output/static
to make this work
If i push a commit vercel will error with this 😧
{
"code": "ERR_PNPM_MISSING_PACKAGE_INDEX_FILE",
"message": "Failed to find package index file for express@4.19.2, please consider running 'pnpm install'"
}
TODO: make one here https://github.com/vercel/vercel/blob/fd069f184d94a41cfcc427e8249418e122a4bf71/packages/frameworks/src/frameworks.ts#L274