#How change public assets folder after nuxt build?

17 messages · Page 1 of 1 (latest)

meager talon
#

Hi guys, today when I run nuxt build the app is generating the files like this (image 1).

How can I push all these items to a folder after build? In my case I'd like to push all these files to app image 2.

fathom kraken
#

Hello! Why would you doing this because i will break your app since path used are those generated at build time.

meager talon
#

And only on build, not on runtime

#

I'm trying to solve subdirectory deployment with Cloudflare Wrangler

fathom kraken
meager talon
#

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

dire wasp
#

Curious to know why you’re not configuring a base url for your app if it sits in a sub directory?

meager talon
#

Hi @dire wasp I'm configuring the baseUrl, you can check on github link

meager talon
#

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

dire wasp
#

I don’t use CF but well done. Amazing how edge services create more problems than they solve 😏