How do nuxt generate do permissions in the future?

I want to be a static website of generate on nuxt. How to put nginx, but don"t know the permission?
I thought to intercept the data in middlware and compare the vuex data to set permissions, so I put a test.js, in middlware to see whether the test.js was executed after the generate was released, but there was no result.

it seems that I still don"t understand nuxt,. Can you give me some advice? Thank you

Jul.30,2021

do you know what to do now? I am also troubled by this problem

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e9d383-1939.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e9d383-1939.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?