I have a question on nuxtjs build.

Is there any way to satisfy the following conditions?

The dist directory is the document root. (xxxx.com/ = dist/ directory)
The actual content is placed under /aaa/bbb/ccc/ddd/.
I want to build /_nuxt/ directory to /aaa/bbb/ccc/ddd/ under the above conditions.

All accesses other than /aaa/bbb/ccc/ddd/ will be redirected to /aaa/bbb/ccc/ddd/ (already implemented with nuxtjs redirects)

I would appreciate it if you could tell me.?

4

To serve static file on Nuxt 3 app, you just need to place them in public folder in Nuxt.js its static folder. To make subdirectories, just create folders, where the folder name is the subdirectory name. Example /images/cute_cat.jpg /documents/salaries/cute_document.pdf

Trả lời

Email của bạn sẽ không được hiển thị công khai. Các trường bắt buộc được đánh dấu *