brunomgmateus
brunomgmateus
NNuxt
Created by DeVoresyah on 8/2/2024 in #❓・help
Build Nuxt 3 as CommonJS
You just need to disable the "experimental.writeEarlyHints" in nuxt config. SHould work well
11 replies
NNuxt
Created by Mike on 5/15/2024 in #❓・help
How to host a full stack Nuxt3 app on cPanel
Sorry for the late reply. You can host it, but there's a couple of pre-requisites. This github discussion has more details. https://github.com/nuxt/nuxt/discussions/25910#discussioncomment-10396305
5 replies
NNuxt
Created by DeVoresyah on 8/2/2024 in #❓・help
Build Nuxt 3 as CommonJS
This was true for the latest Nuxt version.
11 replies
NNuxt
Created by DeVoresyah on 8/2/2024 in #❓・help
Build Nuxt 3 as CommonJS
Sorry for the late reply, but just to let you know that I've come accross an issue where, if you're using the setting "experimental.writeEarlyHints" in nuxt.config.ts, it breaks production version in cPanel, Plesk (and other serverrs that use either nginX or Phusion Passenger).
11 replies
NNuxt
Created by DeVoresyah on 8/2/2024 in #❓・help
Build Nuxt 3 as CommonJS
and so far has been working. But on Nuxt 3.11
11 replies
NNuxt
Created by DeVoresyah on 8/2/2024 in #❓・help
Build Nuxt 3 as CommonJS
I've also tried just loading:
// appstart.cjs
import('./.output/server/index.mjs')
// appstart.cjs
import('./.output/server/index.mjs')
11 replies
NNuxt
Created by DeVoresyah on 8/2/2024 in #❓・help
Build Nuxt 3 as CommonJS
App used to work fine until nuxt 3.11.x. Then somehow something changed, not quite sure what. I've usually had it working with a loading script, appstart.cjs.
async function loadApp() {
await import("./.output/server/index.mjs")
}

loadApp()
async function loadApp() {
await import("./.output/server/index.mjs")
}

loadApp()
This usually would load, but now it doesn't...
11 replies
NNuxt
Created by DeVoresyah on 8/2/2024 in #❓・help
Build Nuxt 3 as CommonJS
Would love to know more about this, having the same issue,
11 replies
NNuxt
Created by QRST on 7/25/2024 in #❓・help
Quick Question - Supabase Client Fetch vs API route fetch
It should be the same result AFAIK, but to me using server api brings a better workflow, as it becomes easier and cleaner to handle as the project increases in size. Not only fetching logic becomes separated, but the data fetching is actually done on the server side, instead of possibly exposing the fetched resource server on the client and possibly CORS errors (but it can also be mitigated with 'server: true' when fetching directly). Defining allowed methods is also a breeze, as is the whole api structuring. Also, if you would like to access that data from other apps, or php, etc, you would just point it to the endpoint. However, pay attention to securing your api, as I've seen the wild endpoints that delete stuff from database without any protection. Just something to be aware of.
2 replies
NNuxt
Created by Gendarme on 7/25/2024 in #❓・help
API route errors
8 replies
NNuxt
Created by Gendarme on 7/25/2024 in #❓・help
API route errors
seems correct. But shouldn't it be [id].delete.ts?
8 replies
NNuxt
Created by brunomgmateus on 3/22/2024 in #❓・help
Vue devtools 6.6.1 doesn't seem to work properly since Nuxt 3.10, and stopped displaying in 3.11
👏
11 replies
NNuxt
Created by brunomgmateus on 3/22/2024 in #❓・help
Vue devtools 6.6.1 doesn't seem to work properly since Nuxt 3.10, and stopped displaying in 3.11
Great! I had to disable my nuxt devtools entirely and disable "update on reload" from the Aplication tab in Chrome, but works again. Thanks
11 replies
NNuxt
Created by brunomgmateus on 3/22/2024 in #❓・help
Vue devtools 6.6.1 doesn't seem to work properly since Nuxt 3.10, and stopped displaying in 3.11
Or any alternative to vueDevtools?
11 replies