#How change public assets folder after nuxt build?
17 messages · Page 1 of 1 (latest)
Hello! Why would you doing this because i will break your app since path used are those generated at build time.
Hey @fathom kraken I want to do that merged with this other question https://discord.com/channels/473401852243869706/1146631518358339665
And only on build, not on runtime
I'm trying to solve subdirectory deployment with Cloudflare Wrangler
what's the issue with it? I deployed many applications to cloudflare without any issue
I have a SSG project on cloudflare pages pointing to https://menthor.io
I'm pushing other project (SSR) on cloudflare workers to https://menthor.io/app/
You can see both projects there: https://github.com/menthorlabs/menthor (one is inside /apps/www SSG and another one /apps/app SSR )
But when I deploy the SSR project to https://menthor.io/app/ is breaking everything, to I had to do a lot of workarounds with baseUrl to make it work, now the last items to fix is all files inside /public folder
You can see all my nuxt.config settings there: https://github.com/menthorlabs/menthor/blob/main/apps/app/nuxt.config.ts
Curious to know why you’re not configuring a base url for your app if it sits in a sub directory?
Hi guys, I fixed all the issues doing this:
I created a folder inside public with the same name as my baseUrl app and I added /app/ prefix on all my project images
So now, cloudflare wrangler is working 100% with baseUrl https://menthor.io/app/twitter-descentralizado/introducao/o-que-voce-vai-aprender
I don’t use CF but well done. Amazing how edge services create more problems than they solve 😏